IdentityServer / IdentityServer4

OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
https://identityserver.io
Apache License 2.0
9.23k stars 4.02k forks source link

No Client Identifier Found -> Js client #5421

Closed EminemJK closed 2 years ago

EminemJK commented 2 years ago

https://github.com/IdentityServer/IdentityServer4/issues/672#issue-199657859

solution:

import qs from 'qs';

axios({
    url: '/AuthID4/connect/token',
    method: 'post',
    data: qs.stringify({
        client_id: 'js',
        client_secret: 'jss',
        grant_type: 'password',
        username: 'admin',
        password: '123'
    }),
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
})
.then((res) => {
    console.log('res');
    console.log(res);
}).catch((err) => {
    console.log('err');
    console.log(err);
});
EminemJK commented 2 years ago

ok,close it

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.