mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore!: ensure consistent secret token generation and hashing (#20388)
This PR uses the same sha256 hashing technique as we use for APIKeys. So now all randomly generated secrets will be hashed with sha256 for consistency. This is a breaking change for the oauth tokens. Since oauth is only allowed for dev builds and experimental, this is ok.
This commit is contained in:
Generated
+6
-2
@@ -1274,7 +1274,9 @@ curl -X GET http://coder-server:8080/api/v2/oauth2/clients/{client_id} \
|
||||
"redirect_uris": [
|
||||
"string"
|
||||
],
|
||||
"registration_access_token": "string",
|
||||
"registration_access_token": [
|
||||
0
|
||||
],
|
||||
"registration_client_uri": "string",
|
||||
"response_types": [
|
||||
"string"
|
||||
@@ -1368,7 +1370,9 @@ curl -X PUT http://coder-server:8080/api/v2/oauth2/clients/{client_id} \
|
||||
"redirect_uris": [
|
||||
"string"
|
||||
],
|
||||
"registration_access_token": "string",
|
||||
"registration_access_token": [
|
||||
0
|
||||
],
|
||||
"registration_client_uri": "string",
|
||||
"response_types": [
|
||||
"string"
|
||||
|
||||
Reference in New Issue
Block a user