gfsql

package module
v0.0.0-...-792bc57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 1 Imported by: 0

README

identification infrastructure for SaaS Platform

CircleCI BCH compliance codebeat badge Codacy Badge Go Report Card

Description

SaaS Platform(e.g. AWS)で利用するための認証基盤。

Feature

  • SaaS Platform で利用することを想定
    • Service 毎に権限の定義できる
    • シングルログアウトができる
    • 認証連携のサポート(TODO)
  • Easy for any language(TODO: gRPC で API の呼び出し)

TODO

  • Role の作成
  • 認証連携 (SAML?OpenID Connet?Kerberos?)
  • gRPC で API の呼び出し
  • Log
  • ベンチマーク
  • SampleApp(Wiki,ImageStorage)
  • CLI経由でモデル操作
  • ModelInfoの実装(UserやServiceを任意に拡張できる)
  • 無効なSessionの削除
  • 設定ファイル(セッションの長さや有効期限の設定)

Sample IdP

gfalcon-signin-service

IdP の Sample Application。 認証の利用例となる。 また、SSO の実現も行なっている。 Cookie をサブドメイン間で共有することで SSO を実現している。 サブドメイン群の中に、非SSLのWebServiceが動いている場合は非推奨。

参考となるコード: gfalconにおける認証の仕方
SSO の例: gfalcon-sso-sample

Demo

Sample SP

gfalcon-action-control-sample

SP の Sample Application。 認可の利用例となる。 Action(利用制限を行いたい行動) を定義する。 Action を許可したい User は、Action との ActionLink を作成する。 SP では、 ActionLink で認可の制御を実現している。

参考となるコード: gfalconにおける認可の仕方
Demo

License

Licensed under the MIT License.

Documentation

Index

Constants

View Source
const ErrCodeDuplicateEntry = 1062

error code of mysql

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	PrepareNamed(sql string) (*sqlx.NamedStmt, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL