ProtocolUtils class
OAuth 2.0 プロトコル固有の値のヘルパーを提供するクラス
メソッド
| generate |
共通ライブラリで使用される状態値を生成します。 |
| parse |
状態を解析して、LibraryState 情報とユーザーが渡した状態を含む RequestStateObject を解析します。 |
| set |
ユーザーの状態をランダムな guid で追加するか、ランダムな guid を返します。 |
メソッドの詳細
generateLibraryState(ICrypto, Record<string, string>)
共通ライブラリで使用される状態値を生成します。
static function generateLibraryState(cryptoObj: ICrypto, meta?: Record<string, string>): string
パラメーター
- cryptoObj
- ICrypto
- meta
-
Record<string, string>
返品
string
parseRequestState(ICrypto, string)
状態を解析して、LibraryState 情報とユーザーが渡した状態を含む RequestStateObject を解析します。
static function parseRequestState(cryptoObj: ICrypto, state: string): RequestStateObject
パラメーター
- cryptoObj
- ICrypto
- state
-
string
返品
setRequestState(ICrypto, string, Record<string, string>)
ユーザーの状態をランダムな guid で追加するか、ランダムな guid を返します。
static function setRequestState(cryptoObj: ICrypto, userState?: string, meta?: Record<string, string>): string
パラメーター
- cryptoObj
- ICrypto
- userState
-
string
- meta
-
Record<string, string>
返品
string