Skip to content

Commit 9be8bdb

Browse files
committed
Added config example.
1 parent f4c304b commit 9be8bdb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/config-examples/fusionauth.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# FusionAuth
2+
3+
FusionAuth does not specify a revocation endpoint so revoke functionality doesn't work. Other than that, full functionality is available.
4+
5+
* [Install FusionAuth](https://fusionauth.io/docs/v1/tech/installation-guide).
6+
* Create an application in the admin screen. Note the client id.
7+
* Set the redirect_uri for the application to be a value like `fusionauth.demo:/oauthredirect` where `fusionauth.demo` is a scheme you've registered in your application.
8+
9+
Use the following configuration (replacing the `clientId` with your application id and `fusionAuth.demo` with your scheme):
10+
11+
```js
12+
const config = {
13+
issuer: 'http://localhost:9011',
14+
clientId: '253eb7aa-687a-4bf3-b12b-26baa40eecbf',
15+
redirectUrl: 'fusionauth.demo:/callback'
16+
scopes: ['offline_access', 'openid']
17+
};
18+
19+
// Log in to get an authentication token
20+
const authState = await authorize(config);
21+
22+
// Refresh token
23+
const refreshedState = await refresh(config, {
24+
refreshToken: authState.refreshToken,
25+
});
26+
```
27+
28+

0 commit comments

Comments
 (0)