supertokens-node
Preparing search index...
recipe/saml
default
Class default
Index
Constructors
constructor
Properties
Error
init
Methods
create
Login
Request
create
Or
Update
Client
get
User
Info
list
Clients
remove
Client
verifySAMLResponse
Constructors
constructor
new
default
()
:
default
Returns
default
Properties
Static
Error
Error
:
typeof
default
= SuperTokensError
Static
init
init
:
(
config
?:
TypeInput
)
=>
RecipeListFunction
= Recipe.init
Methods
Static
create
Login
Request
createLoginRequest
(
input
:
{
acsURL
:
string
;
clientId
:
string
;
redirectURI
:
string
;
state
?:
string
;
tenantId
:
string
;
userContext
?:
Record
<
string
,
any
>
;
}
,
)
:
Promise
<
|
{
redirectURI
:
string
;
status
:
"OK"
}
|
{
status
:
"INVALID_CLIENT_ERROR"
}
,
>
Parameters
input
:
{
acsURL
:
string
;
clientId
:
string
;
redirectURI
:
string
;
state
?:
string
;
tenantId
:
string
;
userContext
?:
Record
<
string
,
any
>
;
}
Returns
Promise
<
|
{
redirectURI
:
string
;
status
:
"OK"
}
|
{
status
:
"INVALID_CLIENT_ERROR"
}
,
>
Static
create
Or
Update
Client
createOrUpdateClient
(
input
:
{
allowIDPInitiatedLogin
?:
boolean
;
clientId
?:
string
;
clientSecret
?:
string
;
defaultRedirectURI
:
string
;
enableRequestSigning
?:
boolean
;
metadataXML
:
string
;
redirectURIs
:
string
[]
;
tenantId
:
string
;
userContext
?:
Record
<
string
,
any
>
;
}
,
)
:
Promise
<
|
{
status
:
"OK"
}
&
SAMLClient
|
{
status
:
"INVALID_METADATA_XML_ERROR"
|
"DUPLICATE_IDP_ENTITY_ERROR"
}
,
>
Parameters
input
:
{
allowIDPInitiatedLogin
?:
boolean
;
clientId
?:
string
;
clientSecret
?:
string
;
defaultRedirectURI
:
string
;
enableRequestSigning
?:
boolean
;
metadataXML
:
string
;
redirectURIs
:
string
[]
;
tenantId
:
string
;
userContext
?:
Record
<
string
,
any
>
;
}
Returns
Promise
<
|
{
status
:
"OK"
}
&
SAMLClient
|
{
status
:
"INVALID_METADATA_XML_ERROR"
|
"DUPLICATE_IDP_ENTITY_ERROR"
}
,
>
Static
get
User
Info
getUserInfo
(
input
:
{
accessToken
:
string
;
clientId
:
string
;
tenantId
:
string
;
userContext
?:
Record
<
string
,
any
>
;
}
,
)
:
Promise
<
|
{
claims
:
Record
<
string
,
any
>
;
email
:
string
;
status
:
"OK"
;
sub
:
string
;
}
|
{
status
:
"INVALID_TOKEN_ERROR"
}
,
>
Parameters
input
:
{
accessToken
:
string
;
clientId
:
string
;
tenantId
:
string
;
userContext
?:
Record
<
string
,
any
>
;
}
Returns
Promise
<
|
{
claims
:
Record
<
string
,
any
>
;
email
:
string
;
status
:
"OK"
;
sub
:
string
;
}
|
{
status
:
"INVALID_TOKEN_ERROR"
}
,
>
Static
list
Clients
listClients
(
input
:
{
tenantId
:
string
;
userContext
?:
Record
<
string
,
any
>
}
,
)
:
Promise
<
{
clients
:
SAMLClient
[]
;
status
:
"OK"
}
>
Parameters
input
:
{
tenantId
:
string
;
userContext
?:
Record
<
string
,
any
>
}
Returns
Promise
<
{
clients
:
SAMLClient
[]
;
status
:
"OK"
}
>
Static
remove
Client
removeClient
(
input
:
{
clientId
:
string
;
tenantId
:
string
;
userContext
?:
Record
<
string
,
any
>
;
}
,
)
:
Promise
<
{
didExist
:
boolean
;
status
:
"OK"
}
>
Parameters
input
:
{
clientId
:
string
;
tenantId
:
string
;
userContext
?:
Record
<
string
,
any
>
}
Returns
Promise
<
{
didExist
:
boolean
;
status
:
"OK"
}
>
Static
verifySAMLResponse
verifySAMLResponse
(
input
:
{
relayState
:
undefined
|
string
;
samlResponse
:
string
;
tenantId
:
string
;
userContext
?:
Record
<
string
,
any
>
;
}
,
)
:
Promise
<
|
{
redirectURI
:
string
;
status
:
"OK"
}
|
{
status
:
|
"INVALID_CLIENT_ERROR"
|
"SAML_RESPONSE_VERIFICATION_FAILED_ERROR"
|
"INVALID_RELAY_STATE_ERROR"
|
"IDP_LOGIN_DISALLOWED_ERROR"
;
}
,
>
Parameters
input
:
{
relayState
:
undefined
|
string
;
samlResponse
:
string
;
tenantId
:
string
;
userContext
?:
Record
<
string
,
any
>
;
}
Returns
Promise
<
|
{
redirectURI
:
string
;
status
:
"OK"
}
|
{
status
:
|
"INVALID_CLIENT_ERROR"
|
"SAML_RESPONSE_VERIFICATION_FAILED_ERROR"
|
"INVALID_RELAY_STATE_ERROR"
|
"IDP_LOGIN_DISALLOWED_ERROR"
;
}
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
Error
init
Methods
create
Login
Request
create
Or
Update
Client
get
User
Info
list
Clients
remove
Client
verifySAMLResponse
supertokens-node
Loading...