Page Contents

Home > @loopback/security > DefaultSubject

DefaultSubject class

Default implementation of Subject

Signature:

export declare class DefaultSubject implements Subject 

Implements: Subject

Properties

Property Modifiers Type Description
authorities readonly Set<Permission>  
credentials readonly Set<Credential>  
principals readonly Set<TypedPrincipal>  
user readonly UserProfile | undefined  

Methods

Method Modifiers Description
addApplication(app)    
addAuthority(authorities)    
addCredential(credentials)    
addUser(users)    
getPrincipal(type)