1
0
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.
Go to file
2018-01-31 13:27:52 +01:00
OwinWebApiTest Added comments & README 2018-01-31 13:27:52 +01:00
.gitattributes Add .gitignore and .gitattributes. 2017-12-29 17:36:53 +01:00
.gitignore Add .gitignore and .gitattributes. 2017-12-29 17:36:53 +01:00
OwinWebApiTest.sln Add project files. 2017-12-29 17:36:55 +01:00
README.md Added comments & README 2018-01-31 13:27:52 +01:00

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.