Class OneDriveOAuthReceiver
java.lang.Object
com.amilesend.onedrive.connection.auth.oauth.OAuthReceiver
com.amilesend.onedrive.connection.auth.oauth.OneDriveOAuthReceiver
- All Implemented Interfaces:
AutoCloseable
Extends
OAuthReceiver
that accounts for MS Graph scopes and client ID in order to provide the URI to query
for the auth code during the OAUTH exchange.- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.amilesend.onedrive.connection.auth.oauth.OAuthReceiver
OAuthReceiver.OAuthReceiverBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Gets the AuthCode URI that is used when initiating an OAuth handshake.The registered application client identifier.The list of scopes (permissions) for accessing the Graph API.Methods inherited from class com.amilesend.onedrive.connection.auth.oauth.OAuthReceiver
browse, close, defaultOAuthReceiverBuilder, getCallbackPath, getHost, getPort, getRedirectUri, start, stop, waitForCode
-
Method Details
-
getAuthCodeUri
Gets the AuthCode URI that is used when initiating an OAuth handshake.- Returns:
- the AuthCode URI
- Throws:
OAuthReceiverException
- if an error occurred while fetching the redirect URI attribute
-
builder
-
getClientId
The registered application client identifier. -
getScopes
The list of scopes (permissions) for accessing the Graph API.
-