Git Product home page Git Product logo

change-password's Introduction

Build Status Maintainability Coverage Status Test Coverage

Change Passwords with Trusona

This is a pet project that makes password changes secure for certain people that I know.

To get going...

This is a rails project: I will assume familiarity with the framework and underlying tooling.

bundle install

Environment Variables

Add correct variables to .env. See .env.example for the template.

Trusona Credentials

You can obtain your unique-to-you Trusona credentials at dashboard.trusona.com

Do set TRUSONA_TOKEN and TRUSONA_SECRET environment variables with those credentials.

Additionally, while there, create a Generic OIDC Integration and provide the Client ID to an environment variable named OIDC_CLIENT_ID

Authorized Users

Configure your authorized users via ENV['AUTHORIZED_USERS']

This set of users can be dynamically obtained from a database or a remote service. Your choice.

Change Password Command

Configure a change password command that would be executed once authorization and authentication is verified.

This is done expected via ENV['PASSWD_SH']

It will receive two arguments in order: the username and the new password

As is standard, it should exit with zero to indicate success and non-zero to indicate failure.

On success, a "your password was changed" email will be sent for confirmation, otherwise not.

Of course, there is an implied assumption that the "username" is an email address. Doh!

Run the specs & features

bundle exec rake

Take it for a spin

bundle exec rails s

change-password's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar thitu avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.