I am using the following:
https://github.com/gdi2290/angular-starter
I am running an application with npm startthat uses the webpack dev server. My problem is that I want to add CAS authentication, but I have no idea what is going on. This is the library I'm trying to use:
npm start
https://github.com/TencentWSRD/connect-cas2
All the examples seem to use express, although I'm not sure if I can use this with the webpack-dev server, as well as with the starter that I use? If so, how to use it? Or do I need another CAS library compatible with running npm?
Webpack - . , " " - .
- , . , connect-cas2 node.js express. , .
connect-cas2, , . , - , , .
, , CAS. :
// the proxy option is part of the devServer in your webpack.config.js devServer: { contentBase: 'public', // setup a proxy proxy: { // just replace the /cas/validate endpoint to the endpoint in your // website that will trigger the api call '/cas/validate': 'https://url-to-your-cas-server.com' } },
Source: https://habr.com/ru/post/1690984/More articles:How to read input file of integers separated by space using readlines in Python 3? - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1690980/how-to-config-several-private-repository-and-public-repository-in-npm&usg=ALkJrhj_lw5epzeF2XVRW_cIPFqFrokPCAAngular 4: Mock ElementRef - angularUsing different compiler flags for C and C ++ files in python extension - c ++Angular2 Inject ElementRef in unit test - dependency-injectionHow to get the last item in a group in the query builder, if not an integer or date? - phpGeneric Swift Classes - genericsHow to explicitly provide implicit arguments in Coq? - coqBest way to localize UserControl in C # (winforms) - c #Webpack dev server throws error - refuses to execute the script because its MIME type ('text / html') is not executable - javascriptAll Articles