Skip to content

Instantly share code, notes, and snippets.

@iggbom
Created February 3, 2022 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iggbom/880f0a3cbda4c3909e6bdd21350db019 to your computer and use it in GitHub Desktop.
Save iggbom/880f0a3cbda4c3909e6bdd21350db019 to your computer and use it in GitHub Desktop.
Javascript SPA using OAuth Assistant Library - config
<config xmlns="http://tail-f.com/ns/config/1.0">
<profiles xmlns="https://curity.se/ns/conf/base">
<profile>
<id>authentication-service</id>
<type xmlns:auth="https://curity.se/ns/conf/profile/authentication">auth:authentication-service</type>
<settings>
<authentication-service xmlns="https://curity.se/ns/conf/profile/authentication">
<authenticators>
<authenticator>
<id>html1</id>
<html-form xmlns="https://curity.se/ns/conf/authenticators/html-form">
<account-manager>default-account-manager</account-manager>
<credential-manager>default-credential-manager</credential-manager>
</html-form>
</authenticator>
</authenticators>
</authentication-service>
</settings>
</profile>
<profile>
<id>token-service</id>
<type xmlns:as="https://curity.se/ns/conf/profile/oauth">as:oauth-service</type>
<settings>
<authorization-server xmlns="https://curity.se/ns/conf/profile/oauth">
<client-store>
<config-backed>
<client>
<id>oauth-assistant-client</id>
<no-authentication>true</no-authentication>
<redirect-uris>http://localhost:8080/assisted.html</redirect-uris>
<redirect-uris>http://localhost:8080/</redirect-uris>
<scope>openid</scope>
<user-authentication>
<allowed-authenticators>html1</allowed-authenticators>
<allowed-post-logout-redirect-uris>http://localhost:8080/assisted.html</allowed-post-logout-redirect-uris>
</user-authentication>
<allowed-origins>https://localhost:8443</allowed-origins>
<allowed-origins>http://localhost:8080</allowed-origins>
<capabilities>
<code/>
<implicit/>
<assisted-token/>
</capabilities>
</client>
</config-backed>
</client-store>
</authorization-server>
</settings>
</profile>
</profiles>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment