Code Monkey home page Code Monkey logo

bpost-aspnetcore-angular's People

Contributors

gdyrrahitis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bpost-aspnetcore-angular's Issues

getting 404 error in authentication but api works on postman

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
image

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

Auth service
image
login function on login component
image

postman log
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.