Delegated | ️ Closure-based delegation without memory leaks
kandi X-RAY | Delegated Summary
kandi X-RAY | Delegated Summary
Delegated is a super small package that helps you avoid retain cycles when using closure-based delegation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Delegated
Delegated Key Features
Delegated Examples and Code Snippets
Community Discussions
Trending Discussions on Delegated
QUESTION
I'm developing an AWS Lambda function which will need to access an Outlook 365 inbox at a regular interval. I'm using Graph API for accessing the inbox.
I created a new Azure AD web application registration using the Azure Active Directory admin center.(https://aad.portal.azure.com/) When assigning API Permissions to my app, I have an option to choose between Delegated permissions and Application permissions. I can't use delegated permissions since my code will run without any user interaction.
When choosing application permissions, I can't find a way to restrict the permission to one user account. For example, if I try to give the app Mail.Read application permission, it'll get access to all mailboxes in the enterprise. Or maybe I'm interpreting the permission description incorrectly.
How do I give my app API permissions to one user's mailbox?
...ANSWER
Answered 2021-Mar-25 at 08:20This issue was solved by Shiva's comment, add it as the answer to close the question:
Some apps call Microsoft Graph using their own identity and not on behalf of a user. For example, the Mail.Read application permission allows apps to read mail in all mailboxes without a signed-in user.
Configuring ApplicationAccessPolicy is used to limit the app access to a specific set of mailboxes.
1.Connect to Exchange Online PowerShell
QUESTION
In our project we are trying to integrate MS Teams with Web application using MS Graph API.use case is OnlineMeeting for Virtual Events.the attendees may or may not have microsoft account.
Created Azure Ad Account and created new tenant and created new user(given Global Administrator role) and registered new Application and given required API permission users.readWrite.all and onlineMreeting.readWrite.all to Application and Delegated Users.
Initially i was using UserCredientials flow(no manual authentication since its not in our usecase user should be authenticated automatically through java) to get accessToken.since its not recommended to use username and credientials(ROPC flow),so now trying to get accessToken only using clientId and clientSecret using adal4j and i am able to get accesstoken but not able to use token for endpoints with /me/onlineMeeting.since token doesnt contain required permission and scope.
so i had tried to reach endpoint with token got from clientid and secret using /users/{id}/onlineMeeting but it gives error like Application does not have permission to Create online meeting on behalf of this user
referred https://docs.microsoft.com/en-us/graph/cloud-communication-online-meeting-application-access-policy its mentioned to change access-policy.
is there any way to create online meeting on behalf of user without changing access policy? to create onlinemeeting on behalf of user do we need skype business account?
onlinemeeting can created by two endpoint /onlineMeeting & /events
so does /event in calender api require any additional previlages like office365 license to create online meeting?
to implement these usecase whats the microsoft account Type,azure ad account and what are all the license and azure subscription need?
to create onlinemeeting only with dialin do we need any special license
...ANSWER
Answered 2021-May-25 at 02:37is there any way to create online meeting on behalf of user without changing access policy? to create onlinemeeting on behalf of user do we need skype business account?
No. We have to set the access policy to use Application token to create online meeting on behalf of a user. To create an online meeting with Microsoft Graph, we don't need skype business account. But if you want to create online meeting through UI / web client, you have to need Teams license. (When I use a new account without being assigned any O365 license, it shows some license error but it's then bypassed. So I think it's a bug. I think we should need skype business account / Teams license to create the online meeting)
so does /event in calendar api require any additional previlages like office365 license to create online meeting?
Yes. We need O365 Exchange Online license to create /event
.
to implement these usecase whats the microsoft account Type,azure ad account and what are all the license and azure subscription need?
In summary, you need at least AAD work or school account and O365 Exchange Online license.
to create onlinemeeting only with dialin do we need any special license
Microsoft graph doesn't support creating onlinemeeting only with dialin. See audioConferencing. It's read-only.
QUESTION
I am trying to access azure blob for file uploads from .NET. I want to use user delegation SAS token here since they are considered secure. I can find many documentation for the .NET 12 library which uses the Azure.Identity and Azure.Storage namespaces.
But the project I'm working on does not has this libraries available, it has the Microsoft.WindowsAzure namespace available since it is an older .NET azure SDK. Now I cannot update to the latest versions so I am stuck with the older SDK and am unable to find documentation for accessing blobs using SAS in older SDK. I tried to see the new classes and find similar ones in the older SDK but many methods/classes are missing or different.
If you have any reference or resource on how to use the Microsoft.WindowsAzure older SDK to access blob content using user delegated SAS key, plese share. Currently we use the storage access key for blob acccess.
...ANSWER
Answered 2021-May-28 at 03:10As you mentioned in your question, Get user delegation SAS key is now not support in 'Microsoft.WindowsAzure'. There is no such method in 'Microsoft.WindowsAzure'.
But, you can send request manually to get the SAS key, you need this:
https://docs.microsoft.com/en-us/rest/api/storageservices/get-user-delegation-key
QUESTION
I am considering porting a legacy pipeline that builds and tests Docker/OCI images into GitLab CI/CD. I already have a GitLab Runner in a Kubernetes cluster and it's registered to a GitLab instance. Testing a particular image requires running certain commands inside (for running unit tests, etc.). Presumably this could be modeled by a job my_test
like so:
ANSWER
Answered 2021-May-27 at 18:09Your first look should be at Services.
With services you can start a container running MySQL
or Postgres
and run tests which will connect to it.
QUESTION
I am updating an user's password via nodejs-graph-API application(with Application token) with below endpoint
PATCH /users/{userId}
ANSWER
Answered 2021-May-24 at 10:34There are few cases where we cannot modify other user's data simply like that. Not just the permissions of API modify but also we need to be having a proper role to do some operation. As we are modifying the other user's password we should be having the highest or related role that can do it. I used to give Global Admin role which worked in my case.
As @Suresh suggested we can also use Authentication administrator role as it worked for him.
For permission to add to application may take few seconds time as it depends on different factors like internet etc.,
QUESTION
I think I'm getting close but I can't figure out why my code isn't working as expected. I want to scrape the data from the first page, then click the next
(arrow) button and move to the next page and do the same and so on until the next
arrow button is greyed out, at which point the driver should quit. Any help would be much appreciated. Here is the code:
ANSWER
Answered 2021-May-22 at 05:43It appears that, even now, you haven't tested any smaller pieces of your code. Look at your logic:
QUESTION
I'm developing a background application (no user interaction will be possible) and I want to automate getting all emails from certain mail boxes using the Graph API. I am facing some issues though:
If I use application permissions I get access to every mailbox in the organization which is not a good solution. Is it possible to limit the access to certain mailboxes? We are using On-premise Exchange and not Exchange Online so this link is not relevant (https://docs.microsoft.com/en-us/graph/auth-limit-mailbox-access).
It I use delegated permissions the app will need user interaction (as far as I can tell) but that will not be possible as it should run in the background. I am looking at the different flows for authentication but none of them really fit my need. Maybe it can be done with the Refresh Token Flow but it seems vulnerable. Is it possible to use delegated permissions without user interaction? If yes, what is the best approach?
Best regards J
...ANSWER
Answered 2021-May-21 at 07:45First, you couldn't use delegated permissions without user. Delegated permissions are used by apps that have a signed-in user present.
It seems Resource Owner Password Credentials(ropc) flow which allows an application to sign in the user by directly handling their password is the best choice for you. But it carries risks, please see the Important in the article to make sure you can use it. You should only use this flow when other more secure flows can't be used.
QUESTION
I know how SAML works and I know how OAuth and OPENIDConnect works. I know that SAML is for authentication and OAuth for authorization. but in certain articles it is mentioned that when in 2007 iPhone came in SAML lacked authentication in that case ( for mobile apps ), I am unable to understand that besides delegated authorization, why we needed OAuth to tackle mobile authentication problem ( now being done by OPENIDConnect ) Or how SAML was unable to deal with that issue. can someone help resolve this confusion. Thanks
...ANSWER
Answered 2021-May-18 at 08:26OAuth and OpenID Connect are JSON based and work well in any technology, including web and mobile.
SAML is an older (back end) standard based on XML. It is still widely used in Identity providers, for signing users in.
These days people write apps (UIs and APIs) in terms of OAuth and OpenID Connect - and never use SAML directly. This results in simpler code in mobile apps, single page apps and APIs.
This means the apps interact with an Authorization Server (AS). The AS can talk to identity providers (to support multiple ways to sign users in). This can include integration with SAML providers if required.
See also my recent answer on thinking of OAuth in terms of application capabilities.
QUESTION
I'm having difficulty to understand Type of property when using delegated property. For example, from this Jetpack Compose documentation, it says both things are same.
...ANSWER
Answered 2021-May-20 at 10:30val nameState: State = helloViewModel.name.observeAsState("")
val name: String = nameState.value
QUESTION
I have implemented a application gateway in azure using terraform.
My terraform code builds up a vent,application gateway, subnet,app service and app service plan.
Everything works just fine, and I am able to access the app service using the application gateway public ip. The only problem is that I can access the app service from its own endpoint too, and I would like to restrict this access only throu my application gateway, so if somebody tried to access the app service directly, it should get a 403
error.
Doing some research, I managed to achieve this from the terminal >> app service >> Networking
But I would like to automate this process with terraform. and here is were I am stuck.
Because the only source I found refers to "azurerm_app_service_slot_virtual_network_swift_connection"
but that resource requires a app service slot which I don't want or need.
I was wondering, how can I implement the Networking access restriction to the app service?
here is my code and how I am building my infra:
networking.tf
ANSWER
Answered 2021-May-20 at 05:54If you want to restrict the web app so that it only receives traffic from the application gateway, one way is to use Azure App Service static IP restrictions. After using the way, if the address isn't allowed access based on the rules in the list, the service replies with an HTTP 403 status code For more details, please refer to here and here
Regarding how to implement it with terraform, please refer to the following script
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Delegated
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page