Session validation in Single Page Application with SP 3.0.2
Peter Schober
peter.schober at univie.ac.at
Thu Nov 15 05:39:36 EST 2018
* Ron Harris <neo204011 at gmail.com> [2018-11-14 19:03]:
> These APIs are protected with some Basic Authentication, but they
> are exposed only over intranet.
FWIW, in our case the API is being hosted on the same server where the
browser established a Shib session with and downloaded the Angular
application from, so API access either requires Shib attributes
(without forcing the creation of a session) or alternatively accepts
tokens in HTTP Basic Auth headers[1].
So other API clients are not forced to get a Shib session either.
-peter
[1] <Location /api/>
AuthType shibboleth
ShibRequestSetting requireSession false
Require shib-session # or whatever
<If "-n req('Authorization')">
AuthType Basic
AuthBasicProvider ...
Require user ...
# etc.
</If>
</Location>
More information about the users
mailing list