Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. custom authentication

custom authentication

Scheduled Pinned Locked Moved ASP.NET
sysadminsecurityquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    balkang
    wrote on last edited by
    #1

    hello, I want to use custom authentication in my web service project. I use asymetric cryptography for loging on the clients. if its OK. I use symmetric cryptography. In brief like that: 1.clients requests the public key of asymetric cryptography from server. 2.server generates and returns it to the client. 3.client encrypts its username, password and the symmetric cryptography's public key and IV and sends them to the server. 4.Server decrypts and authenticates the username and password. if its OK, generates a GUID ticket and encrytp the ticket using the clients public key and IV and sends it to the client. 5.When client calls a webmethod, it send the encrypted ticket and server authenticates the ticket. I have doupts about the safety of this system. Can any other person access to the ticket and call a webmethod by using this ticket. What should ı do more?

    D 1 Reply Last reply
    0
    • B balkang

      hello, I want to use custom authentication in my web service project. I use asymetric cryptography for loging on the clients. if its OK. I use symmetric cryptography. In brief like that: 1.clients requests the public key of asymetric cryptography from server. 2.server generates and returns it to the client. 3.client encrypts its username, password and the symmetric cryptography's public key and IV and sends them to the server. 4.Server decrypts and authenticates the username and password. if its OK, generates a GUID ticket and encrytp the ticket using the clients public key and IV and sends it to the client. 5.When client calls a webmethod, it send the encrypted ticket and server authenticates the ticket. I have doupts about the safety of this system. Can any other person access to the ticket and call a webmethod by using this ticket. What should ı do more?

      D Offline
      D Offline
      devvvy
      wrote on last edited by
      #2

      You don't do encryption and decryption yourself. The proper way to do this is to install certificate on your sever, enable SSL and there should be nothing you need to code yourself, communication between client and server will be encrypted. What to see how to do this?[^] Also, "authentication" and "secured communication between two IP endpoints" (which is done via SSL) are two different issues. Norman Fung

      B 1 Reply Last reply
      0
      • D devvvy

        You don't do encryption and decryption yourself. The proper way to do this is to install certificate on your sever, enable SSL and there should be nothing you need to code yourself, communication between client and server will be encrypted. What to see how to do this?[^] Also, "authentication" and "secured communication between two IP endpoints" (which is done via SSL) are two different issues. Norman Fung

        B Offline
        B Offline
        balkang
        wrote on last edited by
        #3

        I couldnt use the SSL. so ı decided to use self cryptography. I am developing the project in my pc under XP. I dont want to purchase any certificate (verisign ) and want to use cetificate authority. But I couldnt achieve that. Is it possible?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups