フィルターのクリア

I want to access matlab online server using post api but getting 400 error.

7 ビュー (過去 30 日間)
Jay
Jay 2023 年 12 月 22 日
コメント済み: Jay 2024 年 2 月 15 日
Getting "400" error while authenticating myself using LOCAL aythentication type in mathworks using postman.
  1 件のコメント
Jay
Jay 2023 年 12 月 22 日
below is the post url:
https://matlab.mathworks.com/service/core/authnz?subjectId=admin&password=admin&mwtype=authnz/PasswordLogin&displayName=jay

サインインしてコメントする。

回答 (1 件)

Ganesh
Ganesh 2023 年 12 月 22 日
Hi @Jay,
The Error Code 400 corresponds to a "Bad Request" from the server side. The error arises as there is no Endpoint from MathWorks to authenticate you using a Post Request on the URL you have mentioned.
I understand that you are trying to authenticate by creating a Local IdP, for which you will need to create an YAML file which looks similar to the following:
identityProviders:
- id: "local"
type: "local"
displayName: "local"
accounts:
- subjectId: "admin"
displayName: "Admin"
password: "admin"
groups: ["admin"]
extra: {}
- subjectId: "stateful"
password: "stateful"
extra: {}
Kindly refer to the following documentation to learn more about configuring server authentication for "MATLAB Online Server"
Hope this helps!

カテゴリ

Help Center および File ExchangeInstall Products についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by