Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ermissa
Copy link

@ermissa ermissa commented May 8, 2019

No description provided.

Copy link
Owner

@Clancey Clancey left a 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 {
Copy link
Owner

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 {
Copy link
Owner

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.

@ermissa
Copy link
Author

ermissa commented Jun 12, 2019

Sorry I was busy, I will start to implement remaining parts tomorrow.

@zaubererty
Copy link

any news here?

@willladislaw
Copy link

willladislaw commented Sep 25, 2019

@zaubererty See "Resource Owner Password Grant"

https://github.com/dart-lang/oauth2

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants