mirror of
https://github.com/tomasvarg/OwinWebApiTest.git
synced 2026-03-01 00:18:48 +00:00
ASP.NET OWIN WebAPI setup with CAS authorization and static file serving.
| OwinWebApiTest | ||
| .gitattributes | ||
| .gitignore | ||
| OwinWebApiTest.sln | ||
| README.md | ||
Owin WebApi Auth Test
ASP.NET OWIN WebAPI setup with CAS authorization and static file serving.
See Startup.cs and
Providers/CasAuthorizationServerProvider.cs
files for the most relevant stuff.
Configuration
Options configurable in project's Web.config:
appSettings/CasHost: URL of the CAS authentication server (required)appSettings/CasValidationPath: CAS token validation URL path (required; for case another protocol version desired)appSettings/AccessTokenLifetimeHours: login expiration in hours (optional, default = 10)appSettings/WebDirectory: directory from which the client app is served (optional, default = 'Web')appSettings/DocDirectory: directory from which the documentation is served (optional, default = 'Doc')appSettings/ServiceUser: bypass ticket authentication, authorize this user (optional)
A CAS server like
cas-gradle-overlay-template
expected on appSettings/CasHost URL.