Package com.cognite.client.config
Class TokenUrl
- java.lang.Object
-
- com.cognite.client.config.TokenUrl
-
public class TokenUrl extends Object
Helper class that can generate token URLs from well known identity providers.
-
-
Constructor Summary
Constructors Constructor Description TokenUrl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URLgenerateAzureAdURL(String tenantId)Generate a token URL for authenticating towards Azure AD as the identity provider.
-
-
-
Method Detail
-
generateAzureAdURL
public static URL generateAzureAdURL(String tenantId) throws MalformedURLException
Generate a token URL for authenticating towards Azure AD as the identity provider. You have to specify the Azure AD tenant id as input.- Parameters:
tenantId- The Azure AD tenant id.- Returns:
- The token URL for your Azure AD tenant.
- Throws:
MalformedURLException
-
-