Introduction:
Step by step process of creating OAuth 2.0 instance from OCI.
Why we need to do:
OAuth 2.0 is essentially a secure permission-granting framework — it lets one application access resources from another application on a user’s behalf without sharing the user’s password.
How do we solve:
Identity & Security -> Domains -> Default domain -> Integrated applications -> Add application -> Confidential application -> (Name, Description) -> Next ->
-> Client configuration -> Check (Authorization: Client credentials, Refresh token), (Client IP Address: Anywhere) -> Token issuance policy (Add resources->Add scope -> Add OIC instance) -> Next -> Finish
OAuth application will be created -> Activate -> Activate application
Identity & Security -> Domains -> OIC Application -> Application roles -> ServiceDeveloper: Assigned Application -> Manage -> Check in OAuth2.0 -> Close
Details required to access OAuth 2.0:-
Client ID : OAuth 2.0 Application -> General Information -> Client ID
Client Secret : OAuth 2.0 Application -> General Information -> Client secret -> Show secret
Scope : OAuth 2.0 Application -> Resources -> (One ending with ‘all’)
Access Token : {Domain URL} + /oauth2/v1/token
Conclusion:
By following the above process we can create and setup OAuth 2.0 from OCI.