You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/authentication.md
+2-18Lines changed: 2 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,9 @@ The first thing you'll need in order for you to be able to use the LumApps Api i
4
4
5
5
You can see them [here](https://apiv1.lumapps.com/#tag/Authentication)
6
6
7
-
The LumApps sdk can help you when using a service account or a regular token, all you have to do is to give the sdk the credentials infos and the subsequent calls made by the tool will be authenticated using those credentials.
7
+
The LumApps SDK requires an OAuth application to be set up on your LumApps platform (see how to do that in the [LumApps Developer Portal](https://developer.lumapps.com/documentation/oauth.html). Once it is done, all you have to do is to give the sdk the credentials infos and the subsequent calls made by the tool will be authenticated using those credentials.
8
8
9
-
Be sure to target the right lumapps environment. Refer to the [environment documentation](https://lumapps.github.io/lumapps-sdk/environment) first.
10
-
11
-
## Using a regular token
12
-
13
-
To authenticate with a regular, short lived accesss token, instantiate the sdk like so:
This will generate your personal LumApps token that will be active for60 minutes, and that we will use in the following steps
34
+
Before anything else, you need to set up an OAuth application by following the steps in the [LumApps Developer Portal](https://developer.lumapps.com/documentation/oauth.html).
47
35
48
36
2. Authenticate
49
37
38
+
Once your application set up, get a hand on its client ID and secret, then you can write the following
0 commit comments