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

Humanstate / net-oauth2-authorizationserver / 21 / 2
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2016 11:48AM UTC
Files 21
Run time 1s
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

31 Aug 2016 11:45AM UTC coverage: 98.157% (+0.2%) from 98.0%
21.2

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

639 of 651 relevant lines covered (98.16%)

12.44 hits per line

Source Files on job 21.2
  • Tree
  • List 0
  • Changed 5
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 21
  • Travis Job 21.2
  • 8d7727fb on github
  • Prev Job for on master (#19.2)
  • Next Job for on master (#23.2)
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