Add a Web Application.
What is an app?
An app represents your application where users logs in.
This explains how to add a web app, used by backends such as Nodejs and Golang, etc...
note
For other app types, see application.
Adding an app
- Console
- Curl
- In Admin console, navigate to Integration โ Marketplace.
- Choose Web Page Application.
- Click on Add Integration.
- Follow wizard steps.
curl -X POST \
-H "Authorization: Bearer <API_TOKEN>" \
-d '
{
"type":"webApp",
"data":[
{
"type":"appManifest",
"collectorId":"appDetails",
"vars":{
"appId":"mynodeapp",
"displayName":"My Node App",
"active":true,
"appLogic":"scimv2",
"types":[
"scimGroup",
"userLink"
]
}
},
{
"type":"info",
"collectorId":"overview",
"vars":{
}
},
{
"type":"default",
"collectorId":"oauth2Client",
"vars":{
"grant_types":[
"authorization_code"
],
"response_types":[
"code",
"id_token",
"code id_token"
],
"scope":"openid offline profile email",
"redirect_uris":[
"https://localhost/callback"
],
"post_logout_redirect_uris":[
"https://localhost/callback"
]
}
}
]
}
' https://{tenant}.crossid.io/api/v1/integrations/.provision/?reason=sample-app
Crossid will give you back client id and client_secret to be embedded into your app's code.
Update your app
Every time a user tries to login, the app should redirect to Crossid and provide the client id.