Skip to content

Instantly share code, notes, and snippets.

@nialdarbey
Last active December 18, 2015 07:09
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 nialdarbey/5744743 to your computer and use it in GitHub Desktop.
Save nialdarbey/5744743 to your computer and use it in GitHub Desktop.
<oauth2-provider:config
host="0.0.0.0"
port="8081"
name="oauth2-provider"
accessTokenEndpointPath="access-token"
scopes="READ WRITE"
resourceOwnerSecurityProvider-ref="security-provider"
supportedGrantTypes="IMPLICIT RESOURCE_OWNER_PASSWORD_CREDENTIALS"
tokenTtlSeconds="300"
enableRefreshToken="true"
authorizationEndpointPath="authorization-code"
loginPage="login.html"
connector-ref="httpsConnector"
doc:name="OAuth provider module">
<oauth2-provider:clients>
<oauth2-provider:client clientId="customer-web-app" type="PUBLIC" clientName="Web UI" description="Javascript web UI">
<oauth2-provider:authorized-grant-types>
<oauth2-provider:authorized-grant-type>PASSWORD</oauth2-provider:authorized-grant-type>
</oauth2-provider:authorized-grant-types>
<oauth2-provider:scopes>
<oauth2-provider:scope>READ</oauth2-provider:scope>
</oauth2-provider:scopes>
</oauth2-provider:client>
<oauth2-provider:client clientId="admin-web-app" type="PUBLIC" clientName="Private Web UI" description="Javascript web UI">
<oauth2-provider:authorized-grant-types>
<oauth2-provider:authorized-grant-type>PASSWORD</oauth2-provider:authorized-grant-type>
<oauth2-provider:authorized-grant-type>REFRESH_TOKEN</oauth2-provider:authorized-grant-type>
</oauth2-provider:authorized-grant-types>
<oauth2-provider:scopes>
<oauth2-provider:scope>READ</oauth2-provider:scope>
<oauth2-provider:scope>WRITE</oauth2-provider:scope>
</oauth2-provider:scopes>
</oauth2-provider:client>
</oauth2-provider:clients>
</oauth2-provider:config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment