mirror of
https://github.com/paralus/paralus.git
synced 2026-05-09 09:56:45 +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>
36 lines
1.3 KiB
Go
36 lines
1.3 KiB
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type Idp struct {
|
|
bun.BaseModel `bun:"table:authsrv_idp,alias:idp"`
|
|
|
|
Id uuid.UUID `bun:"id,type:uuid,pk,default:uuid_generate_v4()"`
|
|
Name string `bun:"name,notnull,unique"`
|
|
Description string `bun:"description"`
|
|
CreatedAt time.Time `bun:"created_at,notnull,default:current_timestamp"`
|
|
ModifiedAt time.Time `bun:"modified_at,notnull,default:current_timestamp"`
|
|
|
|
IdpName string `bun:"idp_name,notnull"`
|
|
Domain string `bun:"domain,notnull,unique"`
|
|
// Deprecated
|
|
// AcsURL string `bun:"acs_url,notnull,unique"`
|
|
OrganizationId uuid.UUID `bun:"organization_id,type:uuid"`
|
|
PartnerId uuid.UUID `bun:"partner_id,type:uuid"`
|
|
SsoURL string `bun:"sso_url"`
|
|
IdpCert string `bun:"idp_cert"`
|
|
SpCert string `bun:"sp_cert"`
|
|
SpKey string `bun:"sp_key"`
|
|
MetadataURL string `bun:"metadata_url"`
|
|
MetadataFilename string `bun:"metadata_filename"`
|
|
Metadata []byte `bun:"metadata"`
|
|
GroupAttributeName string `bun:"group_attribute_name"`
|
|
SaeEnabled bool `bun:"is_sae_enabled"`
|
|
Trash bool `bun:"trash,default:false"`
|
|
}
|