Skip to content

Commit

Permalink
changes instance to gitlab.foo
Browse files Browse the repository at this point in the history
  • Loading branch information
astitva1905 committed Jun 16, 2024
1 parent f0d133b commit 543d612
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/developer/oauth/AUTHMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ We define some constants that will help with the following discussion:

Additionally, let's say DTaaS uses a dedicated
gitlab instance hosted at the URL
maestro.cps.digit.au.dk” (instead of ”gitlab.com”)
gitlab.foo.com” (instead of ”gitlab.com”)

![alt text](oauth2-workflow.png)

Expand All @@ -38,15 +38,15 @@ This is written in shorthand as _GET/authcode_. The
actual request (a user redirect) looks like:

```json
https :// maestro.cps.digit.au.dk/oauth/
https://gitlab.foo.com/oauth/
authorize ?
response_type = code &
client_id = CLIENT_ID &
redirect_uri = REDIRECT_URI &
scope = read_user & state = STATE
```

Here the maestro.cps.digit.au.dk/oauth/authorize
Here the gitlab.foo.com/oauth/authorize
is the specific
endpoint of the Gitlab instance that handles
authorisation code requests.
Expand Down Expand Up @@ -154,8 +154,7 @@ authentication code for an access token.
of the form:

```json
GET https :// maestro . cps . digit . au . dk / api / v4 /
user
GET https://gitlab.foo.com/api/v4/user
- - header " Authorization : Bearer TOKEN "
```

Expand All @@ -172,7 +171,7 @@ user
```json
{" id ":8 ," username ":" UserX " ,
" name ":" XX " ," state ":" active " ,
" web_url ":" http :// maestro . cps . digit . au . dk /
" web_url ":" https://gitlab.foo.com/
UserX " ,
" created_at ":"2023 -12 -03 T10 :47:21.970 Z " ," bio
":"" ,
Expand Down

0 comments on commit 543d612

Please sign in to comment.