5 Replies - 447 Views - Last Post: 26 May 2014 - 05:23 AM Rate Topic: -----

#1 Zavael  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 11
  • Joined: 13-May 14

Authenticating Java FX application

Posted 13 May 2014 - 04:40 AM

Hi all,

I am creating a free game in java FX and I would like to offer some advanced features for the supporters (a user of the application that donates to support the project).

But I dont know how to authenticate the user to some network service.
i would like to have a hosted application (or light framework) accessible through the network so the user can do something like login with posting credentials (email, password and maybe his IP adress - so I can check if he has passed his credentials to someone else) and to be able to manage the service to add, remove, (un)block users.

I dont know if I should try to create an authentication app myself, as it seams it shouldnt be as hard as I have no roles, no authorization, just a simple authentication. I would like to host it somewhere for free, than maybe if it will be succesful a want to have my own paid light hosting.

I looked for some frameworks, like Apache Shiro, but i would like to know what are the approaches in this kind of donating user authentication, before dwelling into some framework for months just to realize that it is not what I want.

My another google skills took me only to spring security (seems to me heavy for this) or some guides how to secure the application itself (thats not my case).

Could you suggest me some approach or point me to some up-to-date overview blogs/articles? I dont want to be security specialist just to do this simple task. Thank you.

Is This A Good Question/Topic? 0
  • +

Replies To: Authenticating Java FX application

#2 pryogene  Icon User is offline

  • The Leafiest of the Leif's
  • member icon

Reputation: 42
  • View blog
  • Posts: 670
  • Joined: 30-June 09

Re: Authenticating Java FX application

Posted 20 May 2014 - 03:44 AM

My, rather default, response to this is a database. You could store the hashed and salted (!) email addresses, usernames and ip addresses plus a true/false value denoting whether some has or hasn't supported the game. When that user logs in, pull the true/false value and store it in a local variable. That way you could use a simple if statement where supporter-only features would come into play.

It's less than elegant, but it's simple enough.

[Edits Below]
Also, using the database would give you the back end you're after. Largely, though, you'll want a pre built solution for something like this as opposed to writing your own. The approach you take is directly proportional to your data needs. Either way, you'll be using a database - the question is how you'll interface with it.

This post has been edited by pryogene: 20 May 2014 - 03:46 AM

Was This Post Helpful? 0
  • +
  • -

#3 Zavael  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 11
  • Joined: 13-May 14

Re: Authenticating Java FX application

Posted 22 May 2014 - 03:22 AM

thank you, yes, one central database is the way to go, but I need to access the database somehow from every desktop application.
So I was searching for some tutorial or light library to create some server application build on top of this database, then i would connect to this application from java-fx (desktop) application through url request - response adn then save the response in the desktop app.
Was This Post Helpful? 0
  • +
  • -

#4 astonecipher  Icon User is offline

  • Major DIC Head
  • member icon

Reputation: 571
  • View blog
  • Posts: 2,554
  • Joined: 03-December 12

Re: Authenticating Java FX application

Posted 22 May 2014 - 04:39 AM

Is this for a company or personal use? You could always rent cloud/ server space to house your database. Then, it's just a matter of connecting.
Was This Post Helpful? 0
  • +
  • -

#5 farrell2k  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 822
  • View blog
  • Posts: 2,529
  • Joined: 29-July 11

Re: Authenticating Java FX application

Posted 22 May 2014 - 03:30 PM

This is a great example as to why paas services like Openshift.com are great. There is nothing stopping you from hosting a simple crud app with JavaDB on Openshift for your application, and it won't cost you a dime. Well, nothing but the know-how to do it...

This post has been edited by farrell2k: 22 May 2014 - 03:31 PM

Was This Post Helpful? 0
  • +
  • -

#6 Zavael  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 11
  • Joined: 13-May 14

Re: Authenticating Java FX application

Posted 26 May 2014 - 05:23 AM

View Postastonecipher, on 22 May 2014 - 04:39 AM, said:

Is this for a company or personal use? You could always rent cloud/ server space to house your database. Then, it's just a matter of connecting.

its my personal project, free game with benefits for sponsoring users so i dont want at least at the start to invest money for hosting

View Postfarrell2k, on 22 May 2014 - 03:30 PM, said:

This is a great example as to why paas services like Openshift.com are great. There is nothing stopping you from hosting a simple crud app with JavaDB on Openshift for your application, and it won't cost you a dime. Well, nothing but the know-how to do it...

thank you, openshift looks pretty good, creating account :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1