mirror of
https://github.com/paralus/paralus.git
synced 2026-05-27 10:43:37 +00:00
* restructure rcloud-base as a single base controller * updated master.rest * moved sentry from internal to pkg as it is used by relay * removing unused rpc and it's dependencies * Fix usermgmt tests * Don't redefine variables in rest file Co-authored-by: Abin Simon <abin.simon@rafay.co>
22 lines
374 B
Go
22 lines
374 B
Go
package saml
|
|
|
|
import (
|
|
pg "github.com/RafaySystems/rcloud-base/internal/persistence/provider/pg"
|
|
"github.com/crewjam/saml/samlsp"
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type SAMLMiddleware struct {
|
|
*samlsp.Middleware
|
|
}
|
|
|
|
type SAMLService struct {
|
|
EntityDAO pg.EntityDAO
|
|
}
|
|
|
|
func NewSAMLService(db *bun.DB) *SAMLService {
|
|
return &SAMLService{
|
|
EntityDAO: pg.NewEntityDAO(db),
|
|
}
|
|
}
|