Comments (3)
Hi @NObodyGX, the problem is due to a missing Authorization: Bearer {{token}}
in the HTTP Request.
If you read the API Documentation you will find that all the /api/*
endpoint requires authorization token which is obtained making a POST request to the http://{{base_url}}/auth/authenticate
endpoint and passing username and password as parameter. If you are using the StubAuthenticator you can use "Admin" and "password" as username and password, respectively.
Anyway you have noticed a bug in our RefreshTokenMiddleware, so i want to thank you. I have created a branch with the bugfix named issue-7. You can pull this bugfix and try again: you should obtain a "401 Unauthorized" response if you don't provide a valid Authorization header.
Please refer to the pull request #8 and let me know if the issue has been solved.
from opcuawebplatformunict.
@msalafia
I debuge that authorization get it value by
authorization = (String.IsNullOrEmpty(authorization)) ? "Bearer " : authorization;
and web page get HTTP ERROR 404 finally.
Should I add authorization head manually or something else?
Thanks a lot for your help.
from opcuawebplatformunict.
Wait a moment, the response should return "401 UNAUTHORIZED" not 404. Try to test the platform using a tool like Postman according to the API Documentation. This is a pretty good way to test a Web API. Hope this could help you.
from opcuawebplatformunict.
Related Issues (17)
- Remove static attribute "instance" in MqttPublisher
- License? HOT 1
- signalR javascript HOT 1
- Question About "DataSet Not Available" - Not a Bug But Asking for help HOT 2
- Question about Main Step HOT 4
- OPC auto-reconnect pattern HOT 3
- Read Multiple Variable Values from object node HOT 2
- OPCUAServer in TiaPortal V16 HOT 3
- How to run web platform OPCUA HOT 1
- String is not formatted as expected parse node id string HOT 11
- Deploy to Azure Cloud
- Move This project to .net >5
- Getting error: Unexpected signature algorithm HOT 2
- Monitor with websocket HOT 2
- Set the "Security Mode". HOT 2
- Newtonsoft Json.NET Schema Component Dependency HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opcuawebplatformunict.