question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authorization: check application ID

See original GitHub issue

The sandbox token format includes a applicationID field, but the ledger API does not use it to for validation - it is currently only read by the JSON ledger API.

We should add the application ID to Claims, then use it in the ledger API service auth validation if present.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
stefanobaghino-dacommented, Jun 15, 2020

My question was not regarding the missing applicationId from a request but the behavior of tokens with an applicationId against a service that does not have such a field. As I mentioned before, I will simply ignore it for the time being. If there are different requirements we can address them separately.

0reactions
rautenrieth-dacommented, Jun 15, 2020

@stefanobaghino-da IMO the ledger should behave as follows:

Field in token | Field in request | Action
---------------+------------------+---------------------------
 Present       | Present          | Authorize IFF values match
 Missing       | Present          | Authorize
 Present       | Missing          | Authorize
 Missing       | Missing          | Authorize
---------------|------------------+---------------------------

i.e.,

  • missing fields in the token mean all values are authorized
  • superfluous fields in the token are ignored
Read more comments on GitHub >

github_iconTop Results From Across the Web

Get application ID and authentication key
When logging in programmatically, you need the ID for your application and an authentication key. To get those values, use the following steps:....
Read more >
Authorization Check - an overview | ScienceDirect Topics
It is based on performing all necessary authorization checks, when a user executes an activity on the SAP J2EE Engine, to ensure that...
Read more >
Configure Azure AD authentication - App Service
Sign in to the Azure portal, search for and select App Services, ... Select Expose an API, and click Set next to "Application...
Read more >
App ID Authorization V4 | IBM Cloud API Docs
When users or backend services interact with your app, they might need to be authorized to perform specific actions. App ID verifies that...
Read more >
Official ESTA Application Website, U.S. Customs and Border ...
Welcome to the Electronic System for Travel Authorization ... You want to apply for a new authorization for one person or a group...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found