Skip to content

Added support for grant type password #57#87

Open
ermissa wants to merge 2 commits into
Clancey:masterfrom
ermissa:master
Open

Added support for grant type password #57#87
ermissa wants to merge 2 commits into
Clancey:masterfrom
ermissa:master

Conversation

@ermissa

@ermissa ermissa commented May 8, 2019

Copy link
Copy Markdown

No description provided.

@Clancey Clancey left a comment

Copy link
Copy Markdown
Owner

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
Copy Markdown
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
Copy Markdown
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

ermissa commented Jun 12, 2019

Copy link
Copy Markdown
Author

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

@zaubererty

Copy link
Copy Markdown

any news here?

@willladislaw

willladislaw commented Sep 25, 2019

Copy link
Copy Markdown

@zaubererty See "Resource Owner Password Grant"

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants