sixarm_ruby_openid_tech_demo

SixArm.com » Ruby » OpenID » Tech demo for programmers

https://github.com/sixarm/sixarm_ruby_openid_tech_demo

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.2%) to scientific vocabulary

Keywords

demo gem openid ruby
Last synced: 4 months ago · JSON representation ·

Repository

SixArm.com » Ruby » OpenID » Tech demo for programmers

Basic Info
  • Host: GitHub
  • Owner: SixArm
  • Language: Ruby
  • Default Branch: main
  • Size: 13.7 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
demo gem openid ruby
Created over 13 years ago · Last pushed 9 months ago
Metadata Files
Readme Changelog Contributing Code of conduct Citation Codeowners

README.md

SixArm.com → Ruby → OpenID » Tech demo for programmers

This Ruby OpenID tech demo shows a simple example of authentication using the command line and the ruby-openid gem.

This tech demo is intended for programmers who want to see source code.

Step 1

Run it:

ruby begin.rb

What it does:

  • Prompts for the user's OpenID URL, such as "http://alice.myopenid.com"
  • Uses the OpenID gem to begin a connection to the user's OpenID URL.
  • Outputs the OpenID result, which is a URL for the next step.

Step 2

This step is simply copy/paste between the command line and your browser.

  • You copy/paste the Step 1 output URL into your browser's address bar.
  • Your browser goes to your OpenID server and asks you to sign in.
  • When you sign in, your browser shows a new URL in the address bar.
  • This new URL is your confirmation URL and you copy/paste it in Step 3.

Step 3

Run it:

ruby complete.rb

What it does:

  • Prompts for the user's OpenID confirmation URL from Step 2 above.
  • Uses the OpenID gem to verify the sign in and the location.
  • Outputs a message like "Success", "Failure", "Cancel", etc.

What's next?

If you want to understand more about OpenID source code, we suggest reading the ruby-openid gem's source code because it's well written and has plenty of comments.

If you want to use OpenID in your web application, we suggest learning about OpenID integration with web frameworks and and authentication gems:

  • Rack OpenID gem
  • Devise authentication
  • OmniAuth OpenID strategy
  • Authlogic using OpenID

Credits

The Ruby OpenID gem is by JanRain, and it has excellent code with comments and examples. This demo is derived from the gem.

This demo is by Joel Parker Henderson, thanks to the University of California, Berkeley and the University of California, Irvine.

Feedback is welcome. Pull requests are welcome too.

Owner

  • Name: SixArm
  • Login: SixArm
  • Kind: organization
  • Email: sixarm@sixarm.com
  • Location: San Francisco

SixArm Software

Citation (CITATION.cff)

cff-version: 1.2.0
title: SixArm.com → Ruby → OpenID » Tech demo for programmers
message: >-
  If you use this work and you want to cite it,
  then you can use the metadata from this file.
type: software
authors:
  - given-names: Joel Parker
    family-names: Henderson
    email: joel@joelparkerhenderson.com
    affiliation: joelparkerhenderson.com
    orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
  - type: url
    value: 'https://github.com/SixArm/sixarm_ruby_openid_tech_demo/'
    description: SixArm.com → Ruby → OpenID » Tech demo for programmers
repository-code: 'https://github.com/SixArm/sixarm_ruby_openid_tech_demo/'
abstract: >-
  SixArm.com → Ruby → OpenID » Tech demo for programmers
license: See license file

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1

Committers

Last synced: 11 months ago

All Time
  • Total Commits: 25
  • Total Committers: 1
  • Avg Commits per committer: 25.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Joel Parker Henderson j****l@j****m 25
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels