%OAuth2.Utils
class %OAuth2.Utils extends %Library.RegisteredObject
Utility methods for OAuth 2.0 support. This class is used internally by InterSystems IRIS. You should not make direct use of it within your applications. There is no guarantee made about either the behavior or future operation of this class.Method Inventory
- Base64UrlDecode()
- Base64UrlEncode()
- CheckScope()
- CommaToList()
- FindLastKid()
- GetSupportedAlgorithms()
- IsAlgEC()
- IsAlgRSA()
- IsAlgSymmetric()
- ListToComma()
- ObjectToJSON()
- SelectLanguage()
Methods
Decode base64url encoded string
Encode binary value using base64url encoding
classmethod CheckScope(tokenScope As %String, scope As %String) as %OAuth2.Error
Check that scope is subset of valid scopes for this token
Convert a comma separated list to a $list
classmethod GetSupportedAlgorithms(Output sigalgs As %List, Output encalgs As %List, Output keyalgs As %List)
Check if specified algorithm is EC algorithm
This method is deprecated. Use the IsAlgEC method in %Net.JSON.JWA instead.
Check if specified algorithm is RSA algorithm
This method is deprecated. Use the IsAlgRSA method in %Net.JSON.JWA instead.
Check if apecified algorithm is symmetric
This method is deprecated. Use the IsAlgSymmetric method in %Net.JSON.JWA instead.
Convert a $list to comman separated list
classmethod ObjectToJSON(object As %DynamicAbstractObject) as %Status
Output JSON object to the current device
Select the language for Authentication Class localization.
uiLocales is the value of the ui_locales request parameter.
The return value is the selected language code.
Call looks like: Set language=##class(%OAuth2.Utils).SelectLanguage(properties.RequestProperties.GetAt("ui_locales"),domain)
uiLocales is the value of the ui_locales request parameter.
The return value is the selected language code.
Call looks like: Set language=##class(%OAuth2.Utils).SelectLanguage(properties.RequestProperties.GetAt("ui_locales"),domain)
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()