Package com.ngrok.definitions
Class EndpointOAuthMicrosoft.Builder
java.lang.Object
com.ngrok.definitions.EndpointOAuthMicrosoft.Builder
- Enclosing class:
- EndpointOAuthMicrosoft
Builder class for
EndpointOAuthMicrosoft
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs theEndpointOAuthMicrosoft
instance.the OAuth app client ID.the OAuth app client ID.clientSecret
(String clientSecret) the OAuth app client secret.clientSecret
(Optional<String> clientSecret) the OAuth app client secret.emailAddresses
(List<String> emailAddresses) a list of email addresses of users authenticated by identity provider who are allowed access to the endpointemailAddresses
(Optional<List<String>> emailAddresses) a list of email addresses of users authenticated by identity provider who are allowed access to the endpointemailDomains
(List<String> emailDomains) a list of email domains of users authenticated by identity provider who are allowed access to the endpointemailDomains
(Optional<List<String>> emailDomains) a list of email domains of users authenticated by identity provider who are allowed access to the endpointa list of provider-specific OAuth scopes with the permissions your OAuth app would like to ask for.a list of provider-specific OAuth scopes with the permissions your OAuth app would like to ask for.
-
Method Details
-
clientId
the OAuth app client ID. retrieve it from the identity provider's dashboard where you created your own OAuth app. optional. if unspecified, ngrok will use its own managed oauth application which has additional restrictions. see the OAuth module docs for more details. if present, client_secret must be present as well.- Parameters:
clientId
- the value of theclient_id
parameter as aString
- Returns:
- this builder instance
-
clientId
the OAuth app client ID. retrieve it from the identity provider's dashboard where you created your own OAuth app. optional. if unspecified, ngrok will use its own managed oauth application which has additional restrictions. see the OAuth module docs for more details. if present, client_secret must be present as well. -
clientSecret
the OAuth app client secret. retrieve if from the identity provider's dashboard where you created your own OAuth app. optional, see all of the caveats in the docs forclient_id
.- Parameters:
clientSecret
- the value of theclient_secret
parameter as aString
- Returns:
- this builder instance
-
clientSecret
the OAuth app client secret. retrieve if from the identity provider's dashboard where you created your own OAuth app. optional, see all of the caveats in the docs forclient_id
. -
scopes
a list of provider-specific OAuth scopes with the permissions your OAuth app would like to ask for. these may not be set if you are using the ngrok-managed oauth app (i.e. you must pass bothclient_id
andclient_secret
to set scopes) -
scopes
a list of provider-specific OAuth scopes with the permissions your OAuth app would like to ask for. these may not be set if you are using the ngrok-managed oauth app (i.e. you must pass bothclient_id
andclient_secret
to set scopes) -
emailAddresses
a list of email addresses of users authenticated by identity provider who are allowed access to the endpoint -
emailAddresses
a list of email addresses of users authenticated by identity provider who are allowed access to the endpoint -
emailDomains
a list of email domains of users authenticated by identity provider who are allowed access to the endpoint -
emailDomains
a list of email domains of users authenticated by identity provider who are allowed access to the endpoint -
build
Constructs theEndpointOAuthMicrosoft
instance.- Returns:
- a new
EndpointOAuthMicrosoft
-