Skip to content

Commit

Permalink
Revert "[PLATFORM-3432] Update fork with upstream (v1.1.3) (#7)" (#8)
Browse files Browse the repository at this point in the history
This reverts commit 44301f5.
  • Loading branch information
Evanjt1 authored Jul 17, 2024
1 parent 44301f5 commit b211594
Show file tree
Hide file tree
Showing 14 changed files with 366 additions and 765 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
.vscode
node_modules
/dist
playwright-report
/test-results
playwright-report
33 changes: 8 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# client_as

# AS4Mobile
Authorization Server for Mobile Apps

## Environment Configuration
Expand Down Expand Up @@ -57,7 +56,6 @@ User is logged in. access_token and refresh_token cookies have been created and

After the user has successfully logged in, call

```
POST /token HTTP/1.1
Host: app.tiltingpoint.com
Content-Type: application/x-www-form-urlencoded
Expand All @@ -66,20 +64,14 @@ DPoP: zzzzz
grant_type=authorization_code&
client_id=SDK-1.0.0
code=<nonce>
```

will return
```
{
"access_token": "xxx",
"token_type": "DPoP",
"refresh_token": "yyy",
"expires_in": 300
}
```
Refreshing an access token

```
POST /token HTTP/1.1
Host: app.tiltingpoint.com
Content-Type: application/x-www-form-urlencoded
Expand All @@ -88,33 +80,24 @@ DPoP: zzzzz
Refresh
grant_type=refresh_token&
refresh_token=yyy
```

## Endpoints

### /token // public
Endpoints

/token // public

grant_type="cookie_token"
device_info ???

### /jwks
/jwks

### /revoke
/revoke

### /.wellknown/oauth-authorization-server
/.wellknown/oauth-authorization-server

### /login
/login
- called by client after successful login




## Development

- clone repo
- `npm i` to install all node modules
- `npx playwright install` to install Playwright binaries to test with

`npm test` will run fastify.inject() tests

`npm run playwright` will start all the services with docker compose and then run the Playwright tests for browser interactions
Loading

0 comments on commit b211594

Please sign in to comment.