---
title: "Discussion on \"How I prevented duplicate token request in an identity server using semaphore technique\" | Hashnode"
description: "Discussion on \"How I prevented duplicate token request in an identity server using semaphore technique\". Scenario:\nI wrote a service where it requests bearer tokens in an identity server for each company separately. Suppose we have 8 companies, Then the service will check if there is any available nonexpired token for that specific company. If there is ..."
url: "https://hashnode.com/posts/how-i-prevented-duplicate-token-request-in-an-identity-server-using-semaphore-technique/63bd4ddabbc8c6762248a83a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How I prevented duplicate token request in an identity server using semaphore technique](https://blog.fahimabrar.com/how-i-prevented-duplicate-token-request-in-an-identity-server-using-semaphore-technique?utm_source=hashnode&utm_medium=feed)

Scenario: I wrote a service where it requests bearer tokens in an identity server for each company separately. Suppose we have 8 companies, Then the service will check if there is any available nonexpired token for that specific company. If there is ...

Jan 10, 2023 · 4 min read · blog.fahimabrar.com  
Updated Aug 31, 2023  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#semaphore](https://hashnode.com/tag/semaphore)
-   [#net](https://hashnode.com/tag/net)
-   [#multithreading](https://hashnode.com/tag/multithreading)
-   [#asynchronous](https://hashnode.com/tag/asynchronous)

## Written by

[Syed Mohammad Fahim Abrar](https://hashnode.com/@abrarfahim)

@abrarfahim · Dhaka, Bangladesh

  
[View profile](https://hashnode.com/@abrarfahim)

No Happy Path

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
