akveo / akveo/nebular

Oauth2 Password, register and reset password unsopported, why?

未关闭
#1,464 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
TypeScript
星标
8.1k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

### Issue type

**I'm submitting a ...** (check one with "x")

* [ ] bug report
* [ ] feature request
* [x] question

### Issue description

**Current behavior:**
I had configured my Auth strategies as Oauth2 Password, but why it not support register, reset-password and request-password?

**Steps to reproduce:**

**Related code:**

My Oauth2 strategies in core.module:
```
strategies: [
NbOAuth2AuthStrategy.setup({
name: 'password',
clientId: '5',
clientSecret: 'blablabla',
clientAuthMethod: NbOAuth2ClientAuthMethod.BASIC,
baseEndpoint: environment.baseUrlOAuth,
token: {
endpoint: '/token',
grantType: NbOAuth2GrantType.PASSWORD,
class: NbAuthOAuth2JWTToken,
scope: '*',
},
refresh: {
endpoint: '/refresh-token',
grantType: NbOAuth2GrantType.REFRESH_TOKEN,
},
}),
],
forms: {
login: {
redirectDelay: 0,
strategy: 'password',
rememberMe: false,
showMessages: {
success: true,
error: true,
},
},
register: {
redirectDelay: 0,
strategy: 'password',
endpoint: '/auth/signup',
method: 'post',
showMessages: {
success: true,
error: true,
},
terms: true,
},
requestPassword: {
redirectDelay: 0,
strategy: 'password',
endpoint: '/password/create',
method: 'post',
showMessages: {
success: true,
error: true,
},
},
resetPassword: {
redirectDelay: 0,
strategy: 'password',
endpoint: '/password/reset',
method: 'get',
showMessages: {
success: true,
error: true,
},
},
logout: {
redirectDelay: 0,
strategy: 'password',
endpoint: '/auth/logout',
method: 'get',
redirect: {
success: '/auth/login',
failure: '/auth/login',
},
}
```
Error while confirm registration for example: `register is not supported by NbOAuth2AuthStrategy, use authenticate`.

What does "use authenticate" mean?

### Other information:

**npm, node, OS, Browser**
```

Node, npm: `10.13` and `6.19.0`
OS :Centos7
Browser: Chrome

```

**Angular, Nebular**
```
Angular 7
Nebular 4
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。