Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8420917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:59:35+00:00 2026-06-10T02:59:35+00:00

I am in the process of designing an Erlang/OTP application which will expose its

  • 0

I am in the process of designing an Erlang/OTP application which will expose its services (SOA) via a RESTful API.

The services, which comprise the backend will be a database service, a price calculation service, etc.

The clients can be of many types: a web client, mobile clients, an Asterisk server client (which needs to look up user records in the database service) and even the clients which I do not plan to have and do not know about yet. The clients will use the RESTful API differently: some will consume all the services, some will consume just some of the services (the SOA way).

The main concern that I have is the authentication/authorization.

RESTful web application

I can not use the built-in authentication/authorization of Ruby on Rails, because the web-client is just the one client of many possible clients that will use the application via the RESTful API.

So, my question is:

  • what is the general concept of authentication/authorization for a typical RESTful web application which is expected to be used with many different clients?
  • what is the most practical software design pattern for authorization/authenication in a RESTful web application?
  • what Erlang/OTP open source software libraries could you recommend to implement authentication/authorization for such an application?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:59:37+00:00Added an answer on June 10, 2026 at 2:59 am

    Just check how others are doing this, for example in this article: Authentication on Facebook.

    In general the idea is that there is a separate API call that the client calls in order to authenticate itself to the system. The system may accept any client or only from a list of registered clients. Once the system verifies the client, it issues a special token that the client is then using in all API calls. In Facebook documentation it’s called Access token. If the client tries to call an API without a valid token the system reports this as an error and in certain conditions may block the client.

    In REST the token may be send simply as another parameter in the URL, in POST or as additional field directly in JSON. Sending it as POST or in JSON is probably best as it keeps the URL clean (and won’t collide with any caching that may be based on URLs).

    This is the merit of the idea but there are, as usually, more things to consider. For example the token should be difficult to guess so the client isn’t able to recreate a valid token without authenticating with the system. Also, the system may need to expire the token if no API is called within a specified period of time.

    To answer the last part of your question, some libraries to point out:

    • erlang:phash2 or crypto library can be used to generate unique tokens that aren’t easy to guess
    • Webmachine as an excellent framework, or REST toolkit as they like to call it, to create REST interfaces in Erlang
    • the logic behind API calls could be implemented in Erlang and served directly from a web server, e.g. inets or yaws, or it can be implemented using a web framework like Nitrogen or Chicago Boss. Check this list of Erlang web frameworks.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are in the process of designing/creating restful web services that will be consumed
I am in the process of designing a trading application which will use a
I am in the process of designing a web application which will have multiple
My team is in the process of designing a domain model which will hide
I am in the process of designing an application that will allow you to
Background: I am in the process of designing an application that will allow items
I'm designing a system to process plain text files, one of its features will
I am currently in the process of designing a system which will use multiple
I'm in the process of designing an API in PHP that will use OAuth2.0.
I am in the process of designing a simple Java application which deals with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.