Skip to content

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

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