Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Starting A5 web app with a known user

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Starting A5 web app with a known user

    Hi Guys

    Could you please point me in the right direction as to how to create a login which will start with the user name and only prompt for the passcode i.e. the url contains the user ID , something like
    ...\myA5start.a5w?username

    I would be happy enough if the app just started with the user know without a password. The users will be using tablets to login so will have already signed in.
    Regards

    Richard Freeth
    Novice Alpha Anywhere V12 user

    #2
    Re: Starting A5 web app with a known user

    Richard,

    Do you plan to generate a list of these URL's so the user can press a hyperlink and log in as a given user? Or do you just want to remember the user's last user id and automatically populate the user id field on the log in page so they just have to enter the password?

    Comment


      #3
      Re: Starting A5 web app with a known user

      Originally posted by DaveF View Post
      Do you plan to generate a list of these URL's so the user can press a hyperlink and log in as a given user? Or do you just want to remember the user's last user id and automatically populate the user id field on the log in page so they just have to enter the password?
      The latter I think if I understand your reply correctly. I would like to construct the URL, imagine their staffID was 662140 the A5 server would be sent something like the url which got me to this page.

      https://forum.alphasoftware.com/foru...reply&p=662140

      Thus I would like to use the 622140 to look up the users settings. I did think about a list of URL's but then they would have to be maintained and as a new user joined the company even more effort would be required. Whereas storing their staff ID and password is already in a SQL table for other reasons.
      Regards

      Richard Freeth
      Novice Alpha Anywhere V12 user

      Comment


        #4
        Re: Starting A5 web app with a known user

        You can save the last staff id that a user entered using local storage or a cookie. The next time the user logs in, you would update the staff id textbox control with the staff id. This solution would be device specific. Are there other settings that you want to update in your log in page besides the staff id? I use the local storage technique for remembering the user id which requires a little Javascript. Let me know if this is what you are looking for and I can reply with an example.

        Comment


          #5
          Re: Starting A5 web app with a known user

          Hi Dave

          Thank you, there are lots of settings I adjust on the mobile when the user logs in. They often swap devices as they just pick a one from the charging station.

          Typically the customer wants it just as now, the users can pick any mobile and need to still be able too when A5 is deployed. I did think of using some kind of ini file on the device but then the users swapped and effectively ruled that option out.

          I've seen and used lots of applications which use URL's in the way I want to including A5 when it starts the localhost so it must be possible to do this in my project.
          Regards

          Richard Freeth
          Novice Alpha Anywhere V12 user

          Comment


            #6
            Re: Starting A5 web app with a known user

            Richard,

            I guess I'm not understanding the type of landing page you have in mind that would contain the link with the URL you are describing. I think the URL you have in mind might look something like this?

            http://www.mydomain.com/login.a5w?staffid=622140

            What would the landing page look like that contains the link above? Would the URL above link to a login page with a user id set to "622140" and a password or just a password?

            Comment


              #7
              Re: Starting A5 web app with a known user

              Exactly that, Dave, sorry it way way I described it.
              Regards

              Richard Freeth
              Novice Alpha Anywhere V12 user

              Comment


                #8
                Re: Starting A5 web app with a known user

                Oh I did think perhaps passing the password also but that wouldn't have been so secure, better to control that once they have landed with A5.
                Regards

                Richard Freeth
                Novice Alpha Anywhere V12 user

                Comment


                  #9
                  Re: Starting A5 web app with a known user

                  Based on your first post, just enable the Remember Me option in the login dialog properties. that will remember the username but not the password. Also, most browsers will allow the user to save their username and/or password upon first login.

                  If you want the login to know the user even though they have never logged in before then at least send a hash value in the URL as a parameter (instead of their real userid), lookup their username based on the hash value. You can't populate the official Alpha login dialog username from a URL parameter, but you can create your own login dialog from scratch, and populate that username field from the URL then require the password, then use the function a5ws_login_user() to log them in.


                  , and then use the function a5ws_login_user() to log them in. Even that is totally not secure. You should either make them login, use Active Directory to authenticate, or don't require login at all.
                  Steve Wood
                  See my profile on IADN

                  Comment


                    #10
                    Re: Starting A5 web app with a known user

                    Thank you Steve, I don't mind if I send their userid or hash value, either will do exactly what I want to achieve, the bit I don't get is how to setup a project so that it will respond in the way I want i.e. land and look up a record from the URL. Like you say I can then code to make them complete the second bit of the login. I had a chat with the customer and they are not so bothered about the password bit, they just want to be sure who is doing what, they have a lot of temporary staff.
                    Regards

                    Richard Freeth
                    Novice Alpha Anywhere V12 user

                    Comment


                      #11
                      Re: Starting A5 web app with a known user

                      A lot of ways to do what you want. If the client does not care about the login process, just omit it. Hit an A5W page with your URL, include the username or a hash value, use xbasic to validate the parameter, use a5ws_login_user() to log them in, totally skipping the login dialog; or complete only the username from your parameter, make them enter the password. Again, you need to make your own login dialog, Alpha's wont take a parameter to fill in the usename. You can include any required parameters in the URL to filter a grid or anything else. If an A5W page is hit with parameters in the URL, each of those parameters becomes a 'page variable'. You can create an 'Argument' in the grid, and a filter that uses the argument as a filter parameter
                      Steve Wood
                      See my profile on IADN

                      Comment


                        #12
                        Re: Starting A5 web app with a known user

                        Ah a page variable, now I've got it thank you very much.
                        Regards

                        Richard Freeth
                        Novice Alpha Anywhere V12 user

                        Comment


                          #13
                          Re: Starting A5 web app with a known user

                          Most security systems require 2 authentication values, typically a user name (user id) and a password. However, the Alpha Anywhere web security can be configured for single value, which is a unique user name (user id). The function "a5ws_login_user" requires values for both userid and password, but if you are using just the userid for authentication, just pass in some dummy value for the password, such as "password". As long as the user name is unique and valid, the function will successfully log in the user is that is the only criteria.

                          Passing a value in the URL for login is not very secure, and is not recommended unless it is a single use login, or other data is required to complete the authentication such as a password.

                          Comment


                            #14
                            Re: Starting A5 web app with a known user

                            Jerry, didn't know security had a password-free option, even though now I see it as the second checkbox in Security Config! In my Active Directory integration I insure each user has a password, even though all users have the same 'unknown' password (in the AD/LDAP integration, they never see the login dialog, never enter credentials at the Alpha Five level.)

                            Richards, when I referred to "hash value" I was referring back to my AD/LDAP integration. There I get a hash value from their LDAP server and I compare it to my user list, which also has a field for the hash equivalent of the username. So in that case, they never actually log in to Alpha Five at all, they authenticate through their LDAP server.
                            Steve Wood
                            See my profile on IADN

                            Comment


                              #15
                              Re: Starting A5 web app with a known user

                              OK thanks for pointing that out but in this case the customer isn't worried about that sort of security, more the staff walking off with the goods. It's an internal network so I think it should be OK.

                              1) They need to know the ESSID, etc. for the network
                              2) Having hacked that, know that A5 iand the app is there
                              3) Actually be interested in the picking data to make the hack worth while.

                              That said who knows what systems GCHQ etc. want to hack...

                              Thank you all for the help and advice, I will certainly want to make use of it in the future.

                              Merry Christmas.
                              Regards

                              Richard Freeth
                              Novice Alpha Anywhere V12 user

                              Comment

                              Working...
                              X