Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there any automated testing cases/tools for my own server? #388

Open
calidion opened this issue Apr 8, 2017 · 4 comments
Open

is there any automated testing cases/tools for my own server? #388

calidion opened this issue Apr 8, 2017 · 4 comments

Comments

@calidion
Copy link

calidion commented Apr 8, 2017

or how to verify my version server is working?

@maxtruxa
Copy link
Member

Not yet AFAIK but I like the idea.. That's definitely something I'll keep in mind as a future project. Something like the W3C validator for OAuth2 servers.

@manjeshpv
Copy link

You can test using https://www.getpostman.com/collections/37afd82600127fbeef28

INSERT INTO `oauth_clients` (`id`, `name`, `client_id`, `client_secret`, `redirect_uri`, `grant_types`, `scope`, `user_id`) VALUES
(1, NULL, 'democlient', 'democlientsecret', 'http://localhost/cb', NULL, NULL, 1);
INSERT INTO `oauth_scopes` (`id`, `scope`, `is_default`) VALUES
(1, 'profile', NULL);
INSERT INTO `users` (`id`, `username`, `password`, `scope`) VALUES
(1, 'admin', 'admin', 'profile');

username: admin
password: admin

Refer for data: https://github.com/manjeshpv/node-oauth2-server-implementation/blob/master/sql/oauth_demo.sql

I'm also planning to setup and demo. If anyone interested manjeshpv/node-oauth2-server-implementation#10

@calidion
Copy link
Author

@manjeshpv

thanks for the efforts.

I would like to add some points from my point views on the test suite.

  1. automated testing through mocha or some automated testing tools.
  2. no need to setup real servers or can be tested through localhost.
  3. it would be better to make all these apis standardized, and all flows be fullly tested.

@manjeshpv
Copy link

I guess you can add it #393

If u create one repo, I'll code with u for it.

Join https://oauthjs.slack.com

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

No branches or pull requests

3 participants