gdyrrahitis / bpost-aspnetcore-angular Goto Github PK
View Code? Open in Web Editor NEWhttp://codereform.com/blog/post/build-a-secure-angular-client-using-asp-net-core-and-oauth/
Home Page: http://codereform.com
http://codereform.com/blog/post/build-a-secure-angular-client-using-asp-net-core-and-oauth/
Home Page: http://codereform.com
I am use your code for auth service in my angular app for oauth password flow but i am getting 404 error. Even i try to use angular OIDC library but still get 404. I am stuck since last week. Please help me to fix the issue.
I have no access to my backend as i have provided with swagger apis. My others apis work fine i put token in the header manually generated by swagger ui or postman.
Error
Network Log in chrome
Request URL: https://api.paymail-dev.de/pm/oauth/token
Request Method: POST
Status Code: 404
Remote Address: 104.18.59.188:443
Referrer Policy: no-referrer-when-downgrade
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: http://localhost:4200
Access-Control-Allow-Methods: GET, PUT, POST, DELETE, HEAD, OPTIONS, PATCH
Access-Control-Allow-Origin: http://localhost:4200
Access-Control-Expose-Headers: http://localhost:4200
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
cache-control: no-cache, no-store, max-age=0, must-revalidate
cf-cache-status: DYNAMIC
cf-ray: 5c69288b98a3faa4-AMS
cf-request-id: 04b597ab3d0000faa44fae1200000001
content-length: 0
date: Sat, 22 Aug 2020 02:28:05 GMT
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
expires: 0
pragma: no-cache
server: cloudflare
set-cookie: __cfduid=d851d78e1abbb9c5c8c30b3dadeff023b1598063285; expires=Mon, 21-Sep-20 02:28:05 GMT; path=/; domain=.paymail-dev.de; HttpOnly; SameSite=Lax; Secure
status: 404
strict-transport-security: max-age=31536000 ; includeSubDomains
www-authenticate: Basic realm="oauth2/client"
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
:authority: api.paymail-dev.de
:method: POST
:path: /pm/oauth/token
:scheme: https
accept: application/json, text/plain, /
accept-encoding: gzip, deflate, br
accept-language: en,en-US;q=0.9,en-GB;q=0.8
content-length: 120
content-type: application/x-www-form-urlencoded
origin: http://localhost:4200
referer: http://localhost:4200/login
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: cross-site
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36
username: ****************** // i omitted
password: **************** // i omitted
grant_type: password
client_id: client
client_secret: secret
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.