• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Humanstate / net-oauth2-authorizationserver / 22
98%
master: 97%

Build:
Build:
LAST BUILD BRANCH: v0.28
DEFAULT BRANCH: master
Ran 31 Aug 2016 11:50AM UTC
Jobs 8
Files 21
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
22

push

travis-ci

leejo
resolve #1 - implement Implicit Grant flow

Implicit Grant is just a subset of the Authorization Code Grant flow
were, instead of using a client secret, we use an optional redirect
uri and skip the auth code dance

so most of the work here is adding tests to make sure we are doing
the right thing, actual library code added is very little.

the example oauth2_server_simple.pl has been updated to add a client
that supports implicit grant, here's an example of using it:

run the server:

	[leejohnson@MacBook-Pro-de-Lee J1 C10038 13:43:29 master]
	/Volumes/code_partition/net-oauth2-authorizationserver > morbo examples/oauth2_server_simple.pl
	Server available at http://127.0.0.1:3000

get an access token:

	[leejohnson@MacBook-Pro-de-Lee J0 C9996 13:38:13 leejo/implement_implicit_grant]
	*/Users/leejohnson/working/net-oauth2-authorizationserver > curl -XGET "http://127.0.0.1:3000/oauth/authorize?response_type=token&clien
	t_id=TrendyNewServiceImplicitGrant&redirect_uri=https://localhost/cb" -v
	*   Trying 127.0.0.1...
	* Connected to 127.0.0.1 (127.0.0.1) port 3000 (#0)
	> GET /oauth/authorize?response_type=token&client_id=TrendyNewServiceImplicitGrant&redirect_uri=https://localhost/cb HTTP/1.1
	> Host: 127.0.0.1:3000
	> User-Agent: curl/7.43.0
	> Accept: */*
	>
	< HTTP/1.1 302 Found
	< Content-Length: 0
	< Location: https://localhost/cb?access_token=MTQ3MjY0MzUwOS0zNTc3Mi0wLjAyNzczMzE3NjIzODU3NzEteUxFSml2VFJDN2dnbWVnMUMxS0tMRVIwVDF2YzI3&token_type=bearer&expires_in=3600
	< Server: Mojolicious (Perl)
	< Date: Wed, 31 Aug 2016 11:38:29 GMT
	<
	* Connection #0 to host 127.0.0.1 left intact

server logs show:

	[Wed Aug 31 13:43:36 2016] [debug] GET "/oauth/authorize"
	[Wed Aug 31 13:43:36 2016] [debug] Routing to a callback
	[Wed Aug 31 13:43:36 2016] [debug] OAuth2::Server: Resource owner is logged in
	[Wed Aug 31 13:43:36 2016] [debug] 302 Found (0.002632s, 379.939/s)

bump VERSION and Changes for CPAN release

659 of 671 relevant lines covered (98.21%)

96.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 22.1 31 Aug 2016 11:50AM UTC 0
98.16
Travis Job 22.1
2 22.2 31 Aug 2016 11:50AM UTC 0
98.16
Travis Job 22.2
3 22.3 31 Aug 2016 11:51AM UTC 0
98.16
Travis Job 22.3
4 22.4 31 Aug 2016 11:51AM UTC 0
98.16
Travis Job 22.4
5 22.5 31 Aug 2016 11:52AM UTC 0
98.16
Travis Job 22.5
6 22.6 31 Aug 2016 11:52AM UTC 0
98.16
Travis Job 22.6
7 22.7 31 Aug 2016 11:52AM UTC 0
98.16
Travis Job 22.7
8 22.8 31 Aug 2016 11:55AM UTC 0
98.16
Travis Job 22.8
Source Files on build 22
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #22
  • 8d7727fb on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc