1.0.0 • Published 7 years ago
vulcain-ext-stsauthentication v1.0.0
Extension to provide openid authentication
This extension will be tested with IdentityServer
How to use it
Start a identity server instance
See this sample to start an instance with docker
Install package with
npm install vulcain-ext-express --save
Declare an environment variable
exemple
vulcainStsAuthority="http://localhost:5001"
Create a new adapter extending ExpressAdapter which will replace the default adapter
import { ExpressAdapter } from 'vulcain-ext-express';
// Declare your new adapter before running application
@Injectable(LifeTime.Singleton, DefaultServiceNames.ServerAdapter )
class MyAdapter extends ExpressAdapter {
initializeRoutes(express) {
// Add express initialization here
}
}
// MyAdapter will be use automatically
let app = new ApplicationBuilder('Domain')
.runAsync();
1.0.0
7 years ago