-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Added support for grant type password #57 #87
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a couple of changes I think we should do, to make it a little more simple!
import "package:http/http.dart" as http; | ||
import "dart:async"; | ||
|
||
class OauthPasswordAuthenticator extends OAuthAuthenticator { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets add an interface for the verifyCredentials. Then we can use it for BasicAuth and OAuthPassword.
import 'package:flutter/material.dart'; | ||
import 'package:simple_auth/simple_auth.dart'; | ||
|
||
class OauthPasswordLoginPage extends StatefulWidget { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets do one credential entry, So we should merge your changes into https://github.com/Clancey/simple_auth/blob/master/simple_auth_flutter/lib/basic_login_page.dart Have it use the interface. Then both can use the same page, and any other that need username/password.
Sorry I was busy, I will start to implement remaining parts tomorrow. |
any news here? |
@zaubererty See "Resource Owner Password Grant" |
No description provided.