Skip to content

Commit

Permalink
fix: remaining /2/auth/token
Browse files Browse the repository at this point in the history
  • Loading branch information
raimundo-henriques committed Jul 17, 2024
1 parent a57c849 commit 897ced6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion endpoint/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ impl<'a> OpenApiFromRequest<'a> for UserToken {
// In this case the header `Authorization: mytoken` needs to be set.
data: SecuritySchemeData::OAuth2 {
flows: rocket_okapi::okapi::openapi3::OAuthFlows::ClientCredentials {
token_url: "/2/auth/token".into(),
token_url: "/auth/token".into(),
refresh_url: None,
scopes: map! {
"footprint:list".to_owned() => "Ability to list footprints".to_owned(),
Expand Down
2 changes: 1 addition & 1 deletion spec/rest-api/openapi-2.2.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@
"type": "oauth2",
"flows": {
"clientCredentials": {
"tokenUrl": "/2/auth/token",
"tokenUrl": "/auth/token",
"scopes": {
"footprint:list": "Ability to list footprints",
"footprint:read": "Ability to access individual footprints"
Expand Down

0 comments on commit 897ced6

Please sign in to comment.