auth-samples
Two CAP services and a UI over them, set up so role and instance restrictions can be tried out against three mock users instead of a real identity provider.
SalesOrderService requires an authenticated user, and its SalesOrders and SalesOrderItems entities each grant READ to Viewer, READ and WRITE to Sales and READ to Admin, with where: 'company = $user.company' on the Viewer and Sales grants alone, so those two see only the rows of their own company while Admin reads every one. The Products entity carries the same three grants and no instance restriction. The three users the README sends a reader to sit in salesorders/.cdsrc.json under the mock strategy, each with one role and a Company and a Region attribute; company is the only attribute any rule reads, and the three users differ in it, so a restriction can be seen to bite by logging in as someone else. The products project is consumed by the salesorders one as an imported OData service, over basic authentication against a fixed user locally and through a products-srv destination in production. What a local run uses is the mock strategy; what a deployment binds is in the project's own mta.yaml, which declares an xsuaa instance with its xs-security.json, a destination instance and an HDI container.
Facts
Where it sits
Who is behind it
In the atlas: maintains 47, contributes to 47, wrote 10@miyasutamaintainer
Before choosing this
Signals
LicenceNo licenseNeither the package manifest nor the repository tree declares a licence
Without a licence the default is all rights reserved. Ask the maintainer, or check for terms stated elsewhere, before depending on it.
What it declares
Every artifact
- Type
- Sample
- Origin
- Independently maintained
- Use as
- A reference
- Runtime
- Node.js
- Runs on
- Cloud Foundry
As a sample
- Form
- does not say
Connections
Establishing who is calling and making that identity available
Deciding who may read or change what, down to instance level
Using a remote service as if it were one of your own
OAuth server issuing JWTs and holding scopes for BTP apps
Named, credentialed addresses of other systems resolved at runtime
Download
README
quoted from miyasuta/auth-samples, readauth-samples
UI + 2 CAP projects with authentication handling
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
History in the atlas
- First seen.
For your agent
- Ref
artifact:miyasuta-auth-samples- JSON
- /artifacts/miyasuta-auth-samples.json
- MCP
- Connecting an agent