i am trying to have both grant-type in oAuth 2.0. because i need to setup some of my API methods need use client credentials since those are used in service to service connection and for some others i need to setup Authorization grant-type since it was used as user to service connection. my oAuth token provider was Azure Identity service and API was build in .NET Core
I need to configure both Client Credential and Authorization grant type in single oAuth 2.0 token provider. this is in Azure and .NET core API
537 Views Asked by ArulPrasath A M At
1
There are 1 best solutions below
Related Questions in ASP.NET-CORE
- ASP.NET 5 Class Library - Nuget package Web.Config transform
- Asp.Net 5 correct way to access logging config file from Startup.cs
- What is the difference between 'dependencies' and 'frameworkAssemblies' in project.json?
- Getting absolute URLs using ASP.NET Core
- How to add Project Reference in asp.net 5 application
- Configure the authorization server endpoint
- Observer for fire&forget Task
- IApplicationBuilder exists in both Microsoft.AspNet.Http.Abstractions and Microsoft.AspNet.Http
- What frameworks are available in ASP.NET Core (ASP.NET 5) applications?
- How do I include 'System.Runtime.Serialization.Json' namespace in my VSCode project on Mac OS X?
- How to suppress warnings when building an ASP.NET 5 project?
- Dependency Injection in asp.net 5 custom classes, what is the correct way?
- How to access IConfiguration property from Controller in ASP.NET 5
- Getting a scoped component from a IDocumentStoreListener
- How is execution passed from the clr to Startup class (startup.cs)?
Related Questions in OAUTH-2.0
- Not getting refresh token with google oauth2
- SoundCloud Authentication Consistently Returns 401 invalid_grant For Some Users
- How can I share Azure Active Directory authentication between server side and client script?
- OAuth2 and API Json request not working with jQuery Call
- Flask-Restful, oauth, and Salesforce
- Bearer token in MVC controller to access Web API
- Revoking OAuth tokens in Mule
- how to signup user using google-plus integradation in web?
- Need to run getAuthToken twice before receiving access token, why?
- chrome.identity.getAuthToken and refresh token?
- dropbox api authentication (Error: [400] 'invalid_client')
- Retrieve Google Sites's Domain Index feed using OAuth 2.0 with Service Account
- hello.js: Is it possible to set the provider's settings dynamically?
- How to share developer account at LinkedIn
- Linkedin Unsupported POST target
Related Questions in AZURE-ACTIVE-DIRECTORY
- MultipleTokensMatched exception when using default TokenCache
- How can I share Azure Active Directory authentication between server side and client script?
- Azure AD Change Password with patch call
- Azure Active Directory Login: Web App Permissions, User Consent not triggered
- ADALJS Error description:AADSTS65001: No permission to access user information is configured for 'clientId' application, or it is expired or revoked
- app is re-initializing the first time ADAL "protected" URL is accessed via $http
- Validate access token for WEB API protected by Azure AD
- Azure AD Graph API: Is it possible to enumerate all groups associated with an application role?
- Is is possible to use Azure AD as a SAML compliant Identity Provider?
- Microsoft Graph API Accessing basic info of a user that is outside tenancy
- RoundCube OAuth with Azure Active Directory
- Deploy Azure AD WebAPI to IIS, with Windows Authentication enabled, skips Azure AD Authentication
- How to change Is Multiple Resource Refresh Token to true in Azure AD authentication?
- Azure, login to separate accounts with one email
- How to setup nginx to authenticate users through Azure AD?
Related Questions in AUTHORIZATION
- Using Flat Files for authorization instead of using database tables
- Restrinct action to one single PC under MVC C# web application?
- Outgoing WSS authorization from WebRequest C#
- User is authorised when using IE but not Chrome/Firefox
- C# "The underlying provider failed on Open."
- Can't deny access to role in web.config authorization element
- SonarQube LDAP authentication is not working
- Authorization Model: Context of Role?
- Best practice building login for Node.js using socket.io and express
- Where to apply domain level permissioning
- Should i do authorization on my Domain Services?
- Authorize user by retrieving credentials from LDAP and passing into OAuth 1.0a using Atlassian Stash REST API
- How to redirect to another page from OnAutherization Of MVC in angularjs
- AngularJS header authorization format in Interceptor
- Role concept in the authorization
Related Questions in CLIENTCREDENTIAL
- method POST to server that use Oauth2 and accepts multipart Form with credential in order to get Token android/ kotlin
- OAuth security for website with API and only external providers
- OAuth2 - Can a trusted Client access User resources with Client Credentials flow
- Create client credentials flow with custom policies from Azure
- Laravel passport - middleware client_credentials bearer token not working
- OAuth - Make Authorization Code flow work without website or user?
- How to specify client-specific custom attribute in access token
- Handle JWT expiration in SolrJ client side
- IdentityServer4 with ASP.NET Identity and client credentials flow
- I need to configure both Client Credential and Authorization grant type in single oAuth 2.0 token provider. this is in Azure and .NET core API
- How to do IP restrictation for clients in keycloak admin console
- Instagram API, fetching instagram images with client credentials instead of users access tokens
- AAD client-credentials flow request scope for web api
- Client Credential Flow in power automate
- IdentityServer - Client cannot request OpenID scopes in client credentials flow
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This is possible by creating two different clients. In both cases the clients will manage authentication according to their flow, then get an access token with which to call the API. The API owner should also design scopes that clients request.
The API's first job should be to validate a JWT access token on every request. You could use the Microsoft middleware to do this:
Your API controllers will then receive a
ClaimsPrincipalwith which you implement authorization. You can use authorization policies for this, to check you have the right scopes and claims for the current operation: