Package com.ngrok
Class Http.OIDC
- java.lang.Object
-
- com.ngrok.Http.OIDC
-
- Enclosing interface:
- Http
public static class Http.OIDC extends Object
Represents OIDC configuration for an HTTP listener.- See Also:
- OpenID Connect in the ngrok docs for additional details.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Http.OIDC
allowDomain(String domain)
Sets the domain that will be allowed by OIDC.Http.OIDC
allowEmail(String email)
Sets the email address that will be allowed by OIDC.List<String>
getAllowDomain()
Returns the domain to be allowed by OIDC.List<String>
getAllowEmail()
Returns the email address to be allowed by OIDC.String
getClientId()
Returns the client ID for OIDC.String
getClientSecret()
Returns the client secret for OIDC.String
getIssuerUrl()
Returns the issuer URL for OIDC.List<String>
getScope()
Returns the scope to be used by OIDC.Http.OIDC
scope(String scope)
Sets the scope to be used by OIDC.
-
-
-
Method Detail
-
allowEmail
public Http.OIDC allowEmail(String email)
Sets the email address that will be allowed by OIDC.- Parameters:
email
- the email address, unused ifnull
- Returns:
- this OIDC object
-
allowDomain
public Http.OIDC allowDomain(String domain)
Sets the domain that will be allowed by OIDC.- Parameters:
domain
- the domain, unused ifnull
- Returns:
- this OIDC object
-
scope
public Http.OIDC scope(String scope)
Sets the scope to be used by OIDC.- Parameters:
scope
- the scope, unused ifnull
- Returns:
- this OIDC object
-
getIssuerUrl
public String getIssuerUrl()
Returns the issuer URL for OIDC.- Returns:
- the issuer URL
-
getClientId
public String getClientId()
Returns the client ID for OIDC.- Returns:
- the client ID
-
getClientSecret
public String getClientSecret()
Returns the client secret for OIDC.- Returns:
- the client secret
-
getAllowEmail
public List<String> getAllowEmail()
Returns the email address to be allowed by OIDC.- Returns:
- the email address
-
getAllowDomain
public List<String> getAllowDomain()
Returns the domain to be allowed by OIDC.- Returns:
- the domain
-
-