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
This request is basically a copy of this issue only with different motivation.
I am trying to login into the Cloud Foundry UAA server using /oauth/token endpoint described here.
The exact request that works is:
POST https://login.cf.internal/oauth/tokenAccept: application/jsonContent-Type: application/x-www-form-urlencodedAuthorization: Basic Y2Y6grant_type=password&password=your_password&username=your_username
Y2Y6 decodes to cf: where cf is client_id and and client_secret is empty string. These values are not documented in the CF UAA docs so I had to dig into CF CLI code to find them. And checked that was the only http request that worked. Removing Authorization header results in 401 error, therefore none token_endpoint_auth_method wouldn't work as proposed by the previous issue.
The following code fails with client_secret_basic client authentication method requires a client_secret error
const{ Client }=awaitIssuer.discover("https://login.cf.internal");constclient=newClient({client_id: "cf",// there is no documentation about this, had to dig into cf cli codeclient_secret: "",});consttokenSet=awaitclient.grant({grant_type: "password",username: "your_username",password: "your_password"});
While the spec says that it should be required, the spec also acknowledges that the value can be empty string
Possible solutions:
Change the check to allow empty strings and not other falsy values (i think prefered)
Remove the check
Add options to explicitly allow empty string in secret
This library is the only one I found that is actually high quality compared to alternatives and rolling out my own implementation to do the same would not be a solution I would like to go with over this one small hick up. I hope you reconsider your previous decision based on the information listed above
Environment:
openid-client version: v5.4.2
node version: v18.16.0
The text was updated successfully, but these errors were encountered:
This request is basically a copy of this issue only with different motivation.
I am trying to login into the Cloud Foundry UAA server using
/oauth/token
endpoint described here.The exact request that works is:
Y2Y6 decodes to
cf:
where cf is client_id and and client_secret is empty string. These values are not documented in the CF UAA docs so I had to dig into CF CLI code to find them. And checked that was the only http request that worked. Removing Authorization header results in 401 error, thereforenone
token_endpoint_auth_method wouldn't work as proposed by the previous issue.The following code fails with
client_secret_basic client authentication method requires a client_secret
errorWhile the spec says that it should be required, the spec also acknowledges that the value can be empty string
Possible solutions:
This library is the only one I found that is actually high quality compared to alternatives and rolling out my own implementation to do the same would not be a solution I would like to go with over this one small hick up. I hope you reconsider your previous decision based on the information listed above
Environment:
The text was updated successfully, but these errors were encountered: