How to Create Token based Router in Magento2?How to acquire access token for an integration in Magento2Error Using HTTPS to get the authentication token for Magento2 RestMagento2 How to set expiration time for tokenMagento 2 token integration errorHow to Manage API Authentication Lifecycle on Mobile Devices? Magento2Magento 2: Get Admin User Details By Token Rest APIMagento 2 : How to programmatically create and display bearer token on admin screen?How to capture the User ID using magento's customer Token?Magento 2 : Rest Api for access customer id with tokenhow to use Magento2 token
Subgroup generated by a subgroup and a conjugate of it
What is the opposite of "hunger level"?
Build a mob of suspiciously happy lenny faces ( ͡° ͜ʖ ͡°)
Why should I pay for an SSL certificate?
What's a good pattern to calculate a variable only when it is used the first time?
Why is su world executable?
Reducing contention in thread-safe LruCache
What was the intention with the Commodore 128?
programming a recursive formula into Mathematica and find the nth position in the sequence
Pocket Clarketech
What happened after the end of the Truman Show?
Polar contour plot in Mathematica?
Is it alright to say good afternoon Sirs and Madams in a panel interview?
How to train a replacement without them knowing?
C++ Least cost swapping 2
Has there ever been a truly bilingual country prior to the contemporary period?
Do I need to start off my book by describing the character's "normal world"?
Output with the same length always
Alignment of different align environment
How should you gracefully leave a company you helped start?
Designing a prison for a telekinetic race
Get file name and directory in .vimrc file
Icon is not displayed in lwc
Have there ever been other TV shows or Films that told a similiar story to the new 90210 show?
How to Create Token based Router in Magento2?
How to acquire access token for an integration in Magento2Error Using HTTPS to get the authentication token for Magento2 RestMagento2 How to set expiration time for tokenMagento 2 token integration errorHow to Manage API Authentication Lifecycle on Mobile Devices? Magento2Magento 2: Get Admin User Details By Token Rest APIMagento 2 : How to programmatically create and display bearer token on admin screen?How to capture the User ID using magento's customer Token?Magento 2 : Rest Api for access customer id with tokenhow to use Magento2 token
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I want to create Custom API through controller action.
How i can authenticate using token to make secure API.
Example:
http://www.example.com/webapiv1/getItems
http://www.example.com/webapiv1/getOrders
magento2 rest-api webapi
add a comment |
I want to create Custom API through controller action.
How i can authenticate using token to make secure API.
Example:
http://www.example.com/webapiv1/getItems
http://www.example.com/webapiv1/getOrders
magento2 rest-api webapi
add a comment |
I want to create Custom API through controller action.
How i can authenticate using token to make secure API.
Example:
http://www.example.com/webapiv1/getItems
http://www.example.com/webapiv1/getOrders
magento2 rest-api webapi
I want to create Custom API through controller action.
How i can authenticate using token to make secure API.
Example:
http://www.example.com/webapiv1/getItems
http://www.example.com/webapiv1/getOrders
magento2 rest-api webapi
magento2 rest-api webapi
edited Aug 6 at 4:54
Waqar Ali
61816 bronze badges
61816 bronze badges
asked Aug 6 at 4:48
Chandra KumarChandra Kumar
3104 silver badges19 bronze badges
3104 silver badges19 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can use admin token for authentication
To generate admin token
a) Url - http://www.example.com/rest/V1/integration/admin/token
b) Type - POST
c) Parameters - username, password
Username - your-admin-username
Password - your-passord
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f284503%2fhow-to-create-token-based-router-in-magento2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use admin token for authentication
To generate admin token
a) Url - http://www.example.com/rest/V1/integration/admin/token
b) Type - POST
c) Parameters - username, password
Username - your-admin-username
Password - your-passord
add a comment |
You can use admin token for authentication
To generate admin token
a) Url - http://www.example.com/rest/V1/integration/admin/token
b) Type - POST
c) Parameters - username, password
Username - your-admin-username
Password - your-passord
add a comment |
You can use admin token for authentication
To generate admin token
a) Url - http://www.example.com/rest/V1/integration/admin/token
b) Type - POST
c) Parameters - username, password
Username - your-admin-username
Password - your-passord
You can use admin token for authentication
To generate admin token
a) Url - http://www.example.com/rest/V1/integration/admin/token
b) Type - POST
c) Parameters - username, password
Username - your-admin-username
Password - your-passord
answered Aug 7 at 6:02
vartika sharmavartika sharma
336 bronze badges
336 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f284503%2fhow-to-create-token-based-router-in-magento2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown