承接 simplyadmire/crowdconnector 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

simplyadmire/crowdconnector

最新稳定版本:1.0.0

Composer 安装命令:

composer require simplyadmire/crowdconnector

包简介

Connector to authenticate against Atlassian Crowd

README 文档

README

Code Climate Build Status

SimplyAdmire.CrowdConnector

The package offers an authentication provider that can be used to authenticate users against Atlassian crowd. It comes with an importer that you could use to keep the accounts in sync.

When a user is authenticated an account is created in the local database.

Configuration

TYPO3:
  Flow:
    security:
      authentication:
        providers:
          crowdProvider:
            provider: SimplyAdmire\CrowdConnector\Provider\CrowdProvider
            providerOptions:
              instance: 'my.crowd.instance'
              
SimplyAdmire:
  CrowdConnector:
    instances:
      'my.crowd.instance':
        import:
          enabled: true
          createAccounts: true
          providerName: 'crowdProvider'
        roles:
          default:
            - 'My.Package:DefaultRole'
          mapping:
            'crowd-group-name':
              - 'My.Package:AdditionalRole'
              - 'My.Package:AdditionalRole2'
            'crowd-group-name2':
              - 'My.Package:AdditionalRole'
        url: 'https://my.crowd.domain.com/crowd/'
        applicationName: 'my-application-name'
        password: 'my-application-password'
        version: 1

Import users

./flow crowd:importusers

The import will iterate over all configured instances. Users do not have to be imported to be able to authenticate, when a non-existing user logs in an account will automatically be created.

It has the following options:

  • import.enabled:
    • not set or false: The instance is fully skipped by the importer.
    • true: Accounts found in the instance are imported. The minimum actions that are executed are: updating already existing accounts and disabling inactive accounts.
  • import.createAccounts:
    • not set or false: The importer will not create account objects in the database.
    • true: An account objects in the database is created.
  • providerName: The providername for imported accounts.

Signals

The package contains a few signals to extend the mechanism for example to alter the list of roles, map a party object to an account or linking the account to an existing party

CrowdProvider

  • accountAuthenticated: Signals after an account is authenticated. It receives 3 arguments:
    • account: The actual Account object
    • userInformation: Array with the crowd user information
    • groupMembership: Array with the groupmembership

AccountService

  • accountCreated: Signals after an accunt is created, it receives 2 arguments:
    • account: The actual Account object
    • userInformation: Array with the crowd user information
  • accountUpdated: Signals after an accunt is updated, it receives 2 arguments:
    • account: The actual Account object
    • userInformation: Array with the crowd user information
  • accountActivated: Signals after an accunt is activated, it receives a single argument:
    • account: The actual Account object
  • accountDeactivated: Signals after an accunt is deactivated, it receives a single argument:
    • account: The actual Account object

For information on login boxes see: http://flowframework.readthedocs.org/en/latest/TheDefinitiveGuide/PartIII/Security.html#using-the-authentication-controller

统计信息

  • 总下载量: 894
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-09-25