Added Support for SS-SSO-FF for Node Auth0 #1093
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Added idpinitiated, domain_aliases_config and domain_aliases_config in PostSsoTicketRequest and show_as_button in Connection
References
https://oktawiki.atlassian.net/wiki/spaces/Bacca/pages/3198158797/SS-SSO+-+Endpoint+Changes+DX+Focus
Testing
Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.
Manual Testing
Securely store your Client ID, Client Secret, and Management API token.
Install the SDK: npm install auth0
var management = new ManagementClient({
domain: '{YOUR_TENANT_AND REGION}.auth0.com',
clientId: '{YOUR_CLIENT_ID}',
clientSecret: '{YOUR_CLIENT_SECRET}',
});
Get All Connections
const data = await auth0.connections.getAll()
Get Connection by ID
const getConnection = await auth0.connections.get(<Connection_ID>)
Create Connection
const createConnectionRequest = {
name: ,
display_name: < display_name>,
strategy: ,
show_as_button: true,
// add other required fields
}
const createConnectionResp = await auth0.connections.create(createConnectionRequest)
Update Connection
const updateConnectionRequest = {
// add other required fields
show_as_button: true,
is_domain_connection: false
}
const updateConnectionResponse = await auth0.connections.update({<Connection_ID>}, updateConnectionRequest)
Create an SSO access ticket
const ssoAccessTicketRequest = {
connection_config: {
name: 'name',
display_name: 'display name',
is_domain_connection: true,
show_as_button: true,
metadata: {},
options: {
idpinitiated: {
enabled: true,
client_id: '<CLIENT_ID>',
client_protocol: '<CLIENT_PROTOCOL>',
client_authorizequery: '',
},
icon_url: 'https://example.com/image.png',
domain_aliases: [],
},
},
enabled_clients: [],
enabled_organizations: [
{
organization_id: 'ORG_ID',
assign_membership_on_login: true,
show_as_button: true,
},
],
ttl_sec: 0,
};
const response = await auth0.selfServiceProfiles.createSsoTicket(<SELF_SERVICE_PROFILE_ID>}, ssoAccessTicketRequest);
Checklist