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

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

Build:
Build:
LAST BUILD BRANCH: v0.28
DEFAULT BRANCH: master
Repo Added 12 May 2016 03:04PM UTC
Files 22
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

LAST BUILD ON BRANCH v0.08
branch: v0.08
CHANGE BRANCH
x
Reset
  • v0.08
  • gh/24_support_jwe
  • leejo/implement_implicit_grant
  • master
  • v0.09
  • v0.10
  • v0.11
  • v0.13
  • v0.14
  • v0.15
  • v0.16
  • v0.17
  • v0.18
  • v0.19
  • v0.20
  • v0.21
  • v0.22
  • v0.23
  • v0.24
  • v0.25
  • v0.27
  • v0.28
  • valters/access_token_ttl_as_callback

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

Relevant lines Covered
Build:
Build:
671 RELEVANT LINES 659 COVERED LINES
96.9 HITS PER LINE
Source Files on v0.08
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22 v0.08 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 addi... push 31 Aug 2016 11:50AM UTC leejo travis-ci pending completion  
See All Builds (77)
  • Repo 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

© 2025 Coveralls, Inc