# SMAL 認証とは

## SMAL とは

Security Assertion Markup Language の略

## 登場人物
- 認証情報を提供する側をIdentity Provider（IdP）
- 認証情報を利用する側（一般的にアプリケーションサービス側）をService Provider （SP）


IdP Initiated

SP Initiated

## setup はここ

https://github.com/weseek/growi/blob/master/src/server/service/passport.js#L693

```js
passport.use(
      new SamlStrategy(
        {
          entryPoint: configManager.getConfig('crowi', 'security:passport-saml:entryPoint'),
          callbackUrl: (this.crowi.appService.getSiteUrl() != null)
            ? urljoin(this.crowi.appService.getSiteUrl(), '/passport/saml/callback') // auto-generated with v3.2.4 and above
            : configManager.getConfig('crowi', 'security:passport-saml:callbackUrl'), // DEPRECATED: backward compatible with v3.2.3 and below
          issuer: configManager.getConfig('crowi', 'security:passport-saml:issuer'),
          cert: configManager.getConfig('crowi', 'security:passport-saml:cert'),
        },
        (profile, done) => {
          if (profile) {
            return done(null, profile);
          }

          return done(null, false);
        },
      ),
    );
```

- 最低限必要なのはここか

- Attribute Mappingは認証自体には必要ない

## 必要な変数
- Issuer: Service Providerの名前(ID)
- 

---

## Page Navigation

- Canonical URL: https://tips.weseek.co.jp/GROWI/SSOと仲良くなろう/saml調査
- Permalink: https://tips.weseek.co.jp/5f9bf1facc66c90048bdf087
- Parent: [SSOと仲良くなろう](/5f99372a04330d004832a02c.md)
- Children: 0 total
- Total descendants: 0
- Siblings: 3 total
  - [20201030_キックオフミーティング](/5f9be643cc66c90048bdef75.md)
  - [oidc調査](/5f9bf202cc66c90048bdf08b.md)
  - [勉強会資料](/5fdb1d7e4d76f70049f9e691.md)
- Last updated: 2020-11-06T11:49:57.363Z by deleted_at_1672138397219
- Full page listing (all children regardless of count): https://tips.weseek.co.jp/_api/v3/page-listing/children?id=5f9bf1facc66c90048bdf087
