-
Notifications
You must be signed in to change notification settings - Fork 7
Security Tokens
(This page is Work in Progress)
This kind of token authorises opening of a master.
For a simple master, a corresponding token resides in package fielden.security.tokens.open_simple_master and follows naming pattern [Entity]Master_CanOpen_Token.
Tokens that authorise opening of simple masters are used implicitly by the platform. An authorisation check is performed automatically when the simple master is opened.
For a compound master, a corresponding token resides in package fielden.security.tokens.open_compound_master and follows naming pattern Open[Entity]MasterAction_CanOpen_Token.
Although, it should be noted that the Open[Entity]MasterAction part of the name is not merely a pattern but actually refers to an associated "open-master-action" entity (Open[Entity]MasterAction).
Tokens that authorise opening of compound masters should be used explicitly, as the platform does not check them automatically.
The way to use such tokens is to annotate method provideDefaultValues with @Authorise in a corresponding producer.
For example, if entity Person has a compound master, the token responsible for opening that master will be OpenPersonMasterAction_CanOpen_Token.
And the corresponding producer should contain the following:
public class OpenPersonMasterActionProducer extends AbstractProducerForOpenEntityMasterAction<Person, OpenPersonMasterAction> {
// Constructor omitted.
@Override
@Authorise(OpenPersonMasterAction_CanOpen_Token.class)
protected OpenPersonMasterAction provideDefaultValues(final OpenPersonMasterAction entity) {
...
}
}Per aspera ad astra
- Web UI Design and Web API
- Safe Communication and User Authentication
- Gitworkflow
- JavaScript: Testing with Maven
- Java Application Profiling
-
TG Development Guidelines
- TG Releases
- TLS and HAProxy for development
- TG Development Checklist
- Entity
- Entities and their validation
- Entity Properties
- Entity Type Enhancement
- EQL
- Tooltip How To
- All about Matchers
- All about Fetch Models
- Streaming data
- Synthetic entities
- Activatable entities
- Jasper Reports
- Opening Compound Master from another Compound Master
- Window management test plan
- Multi Time Zone Environment
- GraphQL Web API
- Guice
- Maven
- RichText Data Migration
- Full Text Search
- Deployment recipes
- Application Configuration
- Observability
- JRebel Installation and Integration
- Compile-time mechanisms
- Work in progress