Skip to content

Commit 89615a2

Browse files
committed
Remove refs to "owner" and "credentials" grants
These grant types don't exist in OAuth 2.0 and there is no reason to have cases for them in the codebase.
1 parent 3d6c445 commit 89615a2

File tree

6 files changed

+5
-8100
lines changed

6 files changed

+5
-8100
lines changed

dist/scripts/api-console.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3109,18 +3109,10 @@
31093109
label: 'Authorization Code',
31103110
value: 'authorization_code'
31113111
},
3112-
{
3113-
label: 'Resource Owner Password Credentials',
3114-
value: 'owner'
3115-
},
31163112
{
31173113
label: 'Resource Owner Password Credentials',
31183114
value: 'password'
31193115
},
3120-
{
3121-
label: 'Client Credentials',
3122-
value: 'credentials'
3123-
},
31243116
{
31253117
label: 'Client Credentials',
31263118
value: 'client_credentials'
@@ -3683,7 +3675,7 @@
36833675
popup(auth[grantType].getUri());
36843676
}
36853677

3686-
if (grantType === 'owner' || grantType === 'password') {
3678+
if (grantType === 'password') {
36873679
auth.owner.getToken(this.credentials.username, this.credentials.password, function (err, user, raw) {
36883680
if (err) {
36893681
done(raw, err);
@@ -3697,7 +3689,7 @@
36973689
});
36983690
}
36993691

3700-
if (grantType === 'credentials'|| grantType === 'client_credentials') {
3692+
if (grantType === 'client_credentials') {
37013693
auth.credentials.getToken(function (err, user, raw) {
37023694
if (err) {
37033695
done(raw, err);

0 commit comments

Comments
 (0)