OpenID
Less than 1 minute
OpenID
OAuth short summary.
OAuth description.
Methods
__construct
public __construct({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$clientID | string | |
$clientSecret | string | |
$grantType | string | |
$config | Map |
setLogoutURI
Sets the URI for the logout endpoint.
public setLogoutURI({Array})
This method updates the metadata to include the specified URI as the endpoint for ending a session.
Parameters
Parameter | Type | Description |
---|---|---|
$uri | string | the URI to be set as the logout endpoint |
getProfile
Retrieves the user profile from the OAuth2 data stored in the session.
public getProfile({Array})
This method checks if the 'oauth2_data' is present in the storage and if it is an instance of \stdClass with a property 'id_token'. If these conditions are met, it decodes the 'id_token' and returns the decoded JSON object representing the user profile.
logout
Logs out the user by clearing the session and redirecting to the OpenID end session endpoint.
public logout({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$redirect_url | string | optional URL to redirect to after logout |
Generated by Hazaar API Doc Generator