Giter Club home page Giter Club logo

aspace-oidc's Introduction

ArchivesSpace OIDC

Configure ArchivesSpace as a service provider (SP) for OIDC authentication. The plugin delegates authentication to the configured identity provider (IDP).

Strategies tested:

Overview

Enabling this plugin will:

  • Provide Identity Provider (IDP) Sign In link/s
  • The link will redirect the user to the IDP login portal
  • If successful the user will have a user record created in ArchivesSpace
  • User group membership is handled by mapping IDP groups to ArchivesSpace groups. IDP is the master

Configuration

AppConfig[:authentication_sources] = [
  {
    model: 'ASOidc',
    label: 'My IDP',
    show_login_form: false,
    username_field: 'extra.raw_info.preferred_username',
    roles_field: 'extra.raw_info.groups',
    role_mapping: {
      deny_without_group: true,
      admin: {
        mapping: '/my/admin/group',
        group: 1,
        repository: 1
      },
      repositories: [
        {
          mapping: '/my/archivesspace/my_repo/repository-managers',
          group: 5,
          repository: 2
        }
      ]
    },
    config: {
      name: 'keycloak',
      issuer: 'https://my.idp.com/realms/Realm',
      discovery: true,
      send_nonce: false,
      scope: [:openid, :profile, :email],
      client_options: {
        redirect_uri: 'http://localhost:3000/auth/keycloak/callback',
        identifier: 'archivesspace',
        secret: 'SECRET'
      }
    }
  }
]

# add the plugin to the list
AppConfig[:plugins] << "aspace-oidc"

Add / change providers as needed and refer to the project documentation for configuration details. There are many more configuration options than shown above.

Credits and License

This project is based on aspace-oauth by Lyrasis. This project is available as open source under the terms of the MIT License.

aspace-oidc's People

Contributors

blake- avatar bradspry avatar cfitz avatar mark-cooper avatar nebulon42 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.