A developer using Oracle Cloud Infrastructure (OCI) API Gateway must authenticate the API requests to their web application. The authentication process must be implemented using a custom scheme which accepts string parameters from the API caller. Which method can the developer use In this scenario?
Having deployed the authorizer function, you enable authentication and authorization for an API deployment by including two different kinds of request policy in the API deployment specification:
An authentication request policy for the entire API deployment that specifies:The OCID of the authorizer function that you deployed to Oracle Functions that will perform authentication and authorization.The request attributes to pass to the authorizer function.Whether unauthenticated callers can access routes in the API deployment.
An authorization request policy for each route that specifies the operations a caller is allowed to perform, based on the caller's access scopes as returned by the authorizer function.
Using the Console to Add Authentication and Authorization Request Policies
To add authentication and authorization request policies to an API deployment specification using the Console:
Create or update an API deployment using the Console, select theFrom Scratchoption, and enter details on theBasic Informationpage.
In theAPI Request Policiessection of theBasic Informationpage, click theAddbutton besideAuthenticationand specify:
Application in
Function Name:The name of the authorizer function in Oracle Functions.
Authentication Token:Whether the access token is contained in a request header or a query parameter.
Authentication Token Value:Depending on whether the access token is contained in a request header or a query parameter, specify:
Header Name:If the access token is contained in a request header, enter the name of the header.
Parameter Name:If the access token is contained in a query parameter, enter the name of the query parameter.
https://docs.cloud.oracle.com/en-us/iaas/Content/APIGateway/Tasks/apigatewayaddingauthzauthn.htm
Currently there are no comments in this discussion, be the first to comment!